Edit

Share via


Import-ShieldingDataFile

Imports shielding data.

Syntax

Default (Default)

Import-ShieldingDataFile
    [-ShieldingDataFilePath] <String>
    [<CommonParameters>]

Description

The Import-ShieldingDataFile cmdlet imports a ShieldingDataFile object from a shielding data file.

Examples

Example 1: Provision a virtual machine by using an imported data file

PS C:\>Import-ShieldingDataFile -ShieldingDataFilePath "ShieldingFile02.pdk" | Protect-ShieldingDataFile -ShieldingDataFilePath "ShieldingDataFile07.pdk"

This command creates a ShieldingDataFile object. The command passes it to the Protect-ShieldingDataFile cmdlet. That cmdlet specifies the output file name.

Parameters

-ShieldingDataFilePath

Specifies the path of a shielding data file. The file has the .pdk file name extension.

Parameter properties

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

Parameter sets

(All)
Position:0
Mandatory:True
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

ShieldingDataFile

ExistingVMShieldingDataFile

This cmdlet returns a ShieldingDataFile object. This object represents a .pdk file used to provision a shielded virtual machine.