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

Add-HgsAttestationTpmPolicy

Last Updated: 3/29/2017

SYNOPSIS

Adds an attestation policy based on TPM 2.0 hardware to HGS.

SYNTAX

Console

Add-HgsAttestationTpmPolicy [-InputObject] <Byte[]> -Name <String> [-WhatIf] [-Confirm] [<CommonParameters>]

File

Add-HgsAttestationTpmPolicy [-Path] <String> [-Name <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Add-HgsAttestationTpmPolicy cmdlet adds an attestation policy based on trusted platform module (TPM) 2.0 hardware to the Host Guardian Service (HGS). Specify a log, in Trusted Computing Group (TCG) format, that you obtain by using the Get-HgsAttestationBaselinePolicy cmdlet.

EXAMPLES

Example 1: Add a policy

PS C:\> Add-HgsAttestationTpmPolicy -Name "BaselineTpmPolicy17" -Path "C:\Hgs\BaselineTcgLog"

This command adds a policy named BaselineTpmPolicy17 to the Attestation service. The Path parameter specifies the TCG log that you create by using Get-HgsAttestationBaselinePolicy cmdlet.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-InputObject

Specifies a TCG log, in binary form, on which this cmdlet bases a policy.

Type: Byte[]
Parameter Sets: Console
Aliases: 

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

-Name

Specifies the name of the policy that this cmdlet adds.

Type: String
Parameter Sets: Console
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: File
Aliases: 

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

-Path

Specifies the path of a file that contains a TCG log, in binary form.

Type: String
Parameter Sets: File
Aliases: FilePath, PSPath

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
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

Byte[], String

This cmdlet accepts a TCG log as a Byte array or a file name.

OUTPUTS

AttestationPolicyInfo

This cmdlet returns attestation policy information.

NOTES

© 2017 Microsoft