共用方式為


Import-ShieldingDataFile

Import-ShieldingDataFile

Imports shielding data.

語法

Parameter Set: Default
Import-ShieldingDataFile [-ShieldingDataFilePath] <String> [-InformationAction <ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <String> ] [ <CommonParameters>]

詳細描述

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

參數

-InformationAction<ActionPreference>

Specifies how this cmdlet responds to an information event. 這個參數可接受的值如下:

-- SilentlyContinue
-- Stop
-- Continue
-- Inquire
-- Ignore
-- Suspend

別名

infa

必要項?

false

位置?

named

預設值

none

接受管線輸入?

false

接受萬用字元?

false

-InformationVariable<String>

Specifies a variable in which to store an information event message.

別名

iv

必要項?

false

位置?

named

預設值

none

接受管線輸入?

false

接受萬用字元?

false

-ShieldingDataFilePath<String>

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

別名

none

必要項?

true

位置?

1

預設值

none

接受管線輸入?

false

接受萬用字元?

false

<CommonParameters>

這個指令程式支援一般參數:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。如需詳細資訊,請參閱 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

輸入

輸入類型是可透過管道傳送至指令程式的物件類型。

輸出

輸出類型是指令程式所發出的物件類型。

  • ShieldingDataFile, ExistingVMShieldingDataFile

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

範例

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

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

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

相關主題

Protect-ShieldingDataFile