New-Shielded VMSpecialization Data File

Creates a specialization data file to be used when provisioning a shielded virtual machine.

Syntax

New-ShieldedVMSpecializationDataFile
   [-ShieldedVMSpecializationDataFilePath] <String>
   [-SpecializationDataPairs] <Hashtable>
   [<CommonParameters>]

Description

The New-ShieldedVMSpecializationDataFile cmdlet creates a specialization data file to be used when provisioning a shielded virtual machine.

Examples

Example 1: Create a specialization data file to be used when provisioning a shielded virtual machine

PS C:\>New-ShieldedVMSpecializationDataFile -ShieldedVMSpecializationDataFilePath "C:\temp\VM01.fsk" -SpecializationDataPairs @{ "@ComputerName@" = "PC-001"; "@TimeZone@" = "GMT Standard Time" }

This command creates a specialization data file mapping the string @ComputerName@ in answer files to PC-001 and @TimeZone@ to GMT Standard Time. The file is stored at C:\temp\VM01.fsk.

Required Parameters

-ShieldedVMSpecializationDataFilePath

Specifies the path where the specialization data file (.fsk) is saved.

Type: String
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SpecializationDataPairs

Specifies a table of key-value pairs used to replace strings in the answer file. The values must be strings.

Type: Hashtable
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False