Set-SCLogicalNetwork
變更邏輯網路物件的屬性。
Syntax
Set-SCLogicalNetwork
[-VMNetworkCreationDefaultNetworkManager <VirtualSwitchExtensionManager>]
[-VMMServer <ServerConnection>]
[-LogicalNetwork] <LogicalNetwork>
[-Name <String>]
[-Description <String>]
[-EnableNetworkVirtualization <Boolean>]
[-UseGRE <Boolean>]
[-LogicalNetworkDefinitionIsolation <Boolean>]
[-AllowDynamicVlanOnVnic <Boolean>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Set-SCLogicalNetwork
[-VMMServer <ServerConnection>]
[-LogicalNetwork] <LogicalNetwork>
[-Name <String>]
[-Description <String>]
[-EnableNetworkVirtualization <Boolean>]
[-UseGRE <Boolean>]
[-LogicalNetworkDefinitionIsolation <Boolean>]
[-AllowDynamicVlanOnVnic <Boolean>]
[-RemoveVMNetworkCreationDefaultNetworkManager]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Set-SCLogicalNetwork Cmdlet 會變更 Virtual Machine Manager (VMM) 邏輯網路物件的屬性。 您可以更新的屬性包括邏輯網路的名稱和描述。
範例
範例 1:變更邏輯網路的名稱
PS C:\> $LogicalNetwork = Get-SCLogicalNetwork -Name "LogicalNetwork01"
PS C:\> Set-SCLogicalNetwork -LogicalNetwork $LogicalNetwork -Name "LogicalNetwork02"
第一個命令會取得名為 LogicalNetwork01 的邏輯網路物件,並將物件儲存在$LogicalNetwork變數中。
第二個命令會將儲存在 $LogicalNetwork 中的邏輯網路名稱變更為 「LogicalNetwork02」。
參數
-AllowDynamicVlanOnVnic
指定是否為動態 VLAN 設定此 vNIC。 VMM 不會預期此介面卡的 VLAN。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
指定邏輯網路物件的描述。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableNetworkVirtualization
指出是否啟用網路虛擬化。 預設值為 $False。
Type: | Boolean |
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 |
-LogicalNetwork
指定邏輯網路。 邏輯網路是 IP 子網和虛擬區域網路絡的具名群組, (VLAN) 用來組織及簡化網路指派。
Type: | LogicalNetwork |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-LogicalNetworkDefinitionIsolation
指出是否啟用邏輯網路定義隔離。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定 VMM 物件的名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定觸發此動作 (PRO 提示) 效能和資源優化提示的識別碼。 此參數可讓您稽核 PRO 秘訣。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveVMNetworkCreationDefaultNetworkManager
指出 VM 網路預設網路管理員已移除。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
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 |
-UseGRE
指出是否使用網路虛擬化一般路由封裝 (GRE) 。 預設值為 $False。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定 VMM 伺服器物件。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMNetworkCreationDefaultNetworkManager
指定虛擬交換器擴充管理員物件。
Type: | VirtualSwitchExtensionManager |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸出
LogicalNetwork
此 Cmdlet 會傳回 LogicalNetwork 物件。
備註
- 需要可使用 Get-SCLogicalNetwork Cmdlet 擷取的 VMM 邏輯網路物件。