Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-HgsAttestationBaselinePolicy

Last Updated: 3/29/2017

SYNOPSIS

Generates an attestation baseline policy.

SYNTAX

File (Default)

Get-HgsAttestationBaselinePolicy -Path <String> [-Force] [-SkipValidation] [<CommonParameters>]

Console

Get-HgsAttestationBaselinePolicy [-Console] [-SkipValidation] [<CommonParameters>]

DESCRIPTION

The Get-HgsAttestationBaselinePolicy cmdlet generates an attestation baseline policy. You can use the policy to configure the attestation service.

This cmdlet gets a byte array that represents the attestation baseline policy from the raw data of the last full boot from the Trusted Computing Group log of the Trusted Platform Module (TPM).

Be sure to run this cmdlet on a host that is known to have good configuration.

EXAMPLES

Example 1: Generate a baseline policy

PS C:\> Get-HgsAttestationBaselinePolicy -Path "C:\Logs\AttestationBaselinePolicy001" -Force

This command generates a byte array that represents the baseline policy in the file C:\Logs\AttestationBaselinePolicy001.

PARAMETERS

-Console

Indicates that this cmdlet operates in console mode.

Type: SwitchParameter
Parameter Sets: Console
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Force

Indicates that this cmdlet overwrites an existing file that the Output object specifies.

Type: SwitchParameter
Parameter Sets: File
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Path

Specifies a file path. This cmdlet writes the policy to the file that this parameter specifies.

Type: String
Parameter Sets: File
Aliases: FilePath

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SkipValidation

Indicates that this cmdlet skips validation.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

Byte[]

NOTES

© 2017 Microsoft