Set-SCVirtualNetworkAdapterPortProfileSet
設定虛擬網路介面卡通訊埠設定檔集的屬性。
Syntax
Set-SCVirtualNetworkAdapterPortProfileSet
[-IsDefaultPortProfileSet <Boolean>]
[-LogicalSwitch <LogicalSwitch>]
[-PortClassification <PortClassification>]
[-VirtualNetworkAdapterNativePortProfile <VirtualNetworkAdapterNativePortProfile>]
[-AddVirtualNetworkAdapterExtensionPortProfiles <VirtualNetworkAdapterExtensionPortProfile[]>]
[-RemoveVirtualNetworkAdapterExtensionPortProfiles <VirtualNetworkAdapterExtensionPortProfile[]>]
[-VMMServer <ServerConnection>]
[-VirtualNetworkAdapterPortProfileSet] <VirtualNetworkAdapterPortProfileSet>
[-Name <String>]
[[-Description] <String>]
[-RemoveVirtualNetworkAdapterNativePortProfile]
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Set-SCVirtualNetworkAdapterPortProfileSet Cmdlet 會更新虛擬網路介面卡埠設定檔集物件的屬性。
範例
範例 1:從虛擬網路介面卡埠設定檔集移除虛擬網路介面卡原生埠設定檔
PS C:\> Get-SCVirtualNetworkAdapterPortProfileSet -Name "VirtualNetworkAdapterPortProfSet01" | Set-SCVirtualNetworkAdapterPortProfileSet -RemoveVirtualNetworkAdapterNativePortProfile
此命令會取得名為 VirtualNetworkAdapterPortProfSet01 的虛擬網路介面卡埠設定檔集物件,並使用管線運算子將物件傳遞至 Set-SCVirtualNetworkAdapterPortProfileSet,這會從虛擬網路介面卡埠設定檔集物件中移除虛擬網路介面卡原生埠設定檔。
參數
-AddVirtualNetworkAdapterExtensionPortProfiles
指定此 Cmdlet 新增的虛擬網路介面卡擴充埠設定檔陣列。
Type: | VirtualNetworkAdapterExtensionPortProfile[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Description
指定埠設定檔集的描述。
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IsDefaultPortProfileSet
指出這是否為預設埠設定檔集。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobGroup
指定一系列命令的識別碼,這些命令會在執行包含相同工作群組識別碼的最終命令之前,使用整組的方式來執行。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
指定追蹤工作進度,並將工作進度存放在這個參數命名的變數中。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogicalSwitch
指定邏輯交換器物件。
Type: | LogicalSwitch |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
指定 Virtual Machine Manager (VMM) 物件的名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PortClassification
指定虛擬網路介面卡所連線之交換器的埠分類。
Type: | PortClassification |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PROTipID
指定觸發此動作之 PRO 提示 (PRO 提示的識別碼) 。 此參數可讓您稽核 PRO 秘訣。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveVirtualNetworkAdapterExtensionPortProfiles
指定虛擬網路介面卡擴充埠設定檔的陣列。
Type: | VirtualNetworkAdapterExtensionPortProfile[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RemoveVirtualNetworkAdapterNativePortProfile
指出這個 Cmdlet 會移除指定的虛擬網路介面卡原生埠設定檔。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
表示作業會以非同步方式執行,讓控制項立即返回命令殼層。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualNetworkAdapterNativePortProfile
指定虛擬網路 adapater 原生埠設定檔物件。
若要取得虛擬網路介面卡原生埠設定檔物件,請使用 Get-SCVirtualNetworkAdapterNativePortProfile Cmdlet。
Type: | VirtualNetworkAdapterNativePortProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VirtualNetworkAdapterPortProfileSet
指定虛擬網路介面卡通訊埠設定檔集物件。
若要取得虛擬網路介面卡埠設定檔集物件,請使用 Get-SCVirtualNetworkAdapterPortProfileSetCmdlet。
Type: | VirtualNetworkAdapterPortProfileSet |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
指定 VMM 伺服器物件。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |