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

Get-HgsAttestationPolicy

Last Updated: 3/29/2017

SYNOPSIS

Gets HGS attestation policies.

SYNTAX

Get-HgsAttestationPolicy [-PolicyType <AttestationPolicyType[]>] [[-Name] <String>]
 [-State <AttestationPolicyState>] [<CommonParameters>]

DESCRIPTION

The Get-HgsAttestationPolicy cmdlet gets Host Guardian Service (HGS) attestation policies.

EXAMPLES

Example 1: Get all policies

PS C:\> Get-HgsAttestationPolicy

This command gets all policies that are currently configured for the Attestation service.

Example 2: Get a policy by name

PS C:\> Get-HgsAttestationPolicy -Name "BaselineTpmPolicy16"

This command gets the policy named BaselineTpmPolicy16.

Example 3: Get policies by type

PS C:\> Get-HgsAttestationPolicy -PolicyType Tpm

This command gets policies that have the type Tpm.

Example 4: Get all enabled policies

PS C:\> Get-HgsAttestationPolicy -State Enabled

This command gets all enabled policies.

PARAMETERS

-Name

Specifies the name of the policy that this cmdlet gets. Use wildcard characters to get more than one policy.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-PolicyType

Specifies the type of the policies that this cmdlet gets.

Type: AttestationPolicyType[]
Parameter Sets: (All)
Aliases: 
Accepted values: Unknown, SecureBootEnabled, SecureBootSettings, CiPolicy, UefiDebugDisabled, FullBoot, VsmIdkPresent, BitLockerEnabled, IommuEnabled, PagefileEncryptionEnabled, HypervisorEnforcedCiPolicy, NoHibernation, NoDumps, DumpEncryption, DumpEncryptionKey

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

-State

Specifies the state of the policies that this cmdlet gets. The acceptable values for this parameter are:

  • Enabled
  • Disabled
  • Locked
Type: AttestationPolicyState
Parameter Sets: (All)
Aliases: 
Accepted values: Disabled, Enabled, Locked

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

String

You can pipe strings to this cmdlet.

OUTPUTS

AttestationPolicyInfo

This cmdlet returns attestation policy information.

NOTES

Disable-HgsAttestationPolicy

Enable-HgsAttestationPolicy

Remove-HgsAttestationPolicy

© 2017 Microsoft