Edit

Share via


Get-HgsAttestationHostGroup

Gets attestation policies based on host groups.

Syntax

Default (Default)

Get-HgsAttestationHostGroup
    [-Name <String>]
    [<CommonParameters>]

Description

The Get-HgsAttestationHostGroup cmdlet gets attestation policies that are based on the configuration of Active Directory host groups. To obtain a particular host group policy, specify it by name.

Examples

Example 1: Get policies for all host groups

PS C:\> Get-HgsAttestationHostGroup

This command gets policies for all host groups configured with the Attestation service.

Example 2: Get a specific policy for a host group

PS C:\> Get-HgsAttestationHostGroup -Name "TrustedADHostGroup14"

This command gets the policy for the host group named TrustedADHostGroup14.

Parameters

-Name

Specifies the friendly name of the host group for which this cmdlet gets the policy.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Outputs

StringCollection

This cmdlet returns a StringCollection object.