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

Get-KeyProtectorFromShieldingDataFile

Last Updated: 4/3/2017

SYNOPSIS

Gets the Key Protector from a Shielding Data File.

SYNTAX

Get-KeyProtectorFromShieldingDataFile [-ShieldingDataFilePath] <String> [<CommonParameters>]

DESCRIPTION

The Get-KeyProtectorFromShieldingDataFile cmdlet gets the Key Protector from a Shielding Data File.

EXAMPLES

Example 1: Extract the raw byte form of the Key Protector from the shielding data file

PS C:\>Get-KeyProtectorFromShieldingDataFile -ShieldingDataFilePath "C:\temp\shieldingdata.pdk"
0 0 36 52 [...]

This command extracts the raw byte form of the key protector from the shielding data file located at C:\temp\shieldingdata.pdk

Example 2: Extract the raw key protector from the shielding data and convert it to an HGS Key Protector object

PS C:\>$KP = Get-KeyProtectorFromShieldingDataFile -ShieldingDataFilePath 'C:\temp\shieldingdata.pdk'
PS C:\> ConvertTo-HgsKeyProtector -Bytes $KP

The first command extracts the raw key protector from the shielding data file located at C:\temp\shieldingdata.pdk and stores the result in the variable named $KP.

The second command converts raw key protector stored in the $KB variable to an HGS Key Protector object for further inspection.

PARAMETERS

-ShieldingDataFilePath

Specifies the location of a Shielding Data File (.pdk).

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
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

This cmdlet returns a Byte[] array that represents the raw key protector structure.

NOTES

Shielded Virtual Machine Provioning Cmdlets in Windows PowerShell

© 2017 Microsoft