Set-SCLogicalSwitch
更新邏輯交換器的屬性。
Syntax
Set-SCLogicalSwitch
[-VirtualSwitchExtensions <VirtualSwitchExtension[]>]
[-Description <String>]
[-EnableSriov <Boolean>]
[-SwitchUplinkMode <SwitchUplinkMode>]
[-MinimumBandwidthMode <BandwidthMode>]
[-VMMServer <ServerConnection>]
[-LogicalSwitch] <LogicalSwitch>
[-Name <String>]
[-EnablePacketDirect <Boolean>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Set-SCLogicalSwitch
[-Description <String>]
[-EnableSriov <Boolean>]
[-SwitchUplinkMode <SwitchUplinkMode>]
[-MinimumBandwidthMode <BandwidthMode>]
[-VMMServer <ServerConnection>]
[-LogicalSwitch] <LogicalSwitch>
[-RemoveAllExtensions]
[-Name <String>]
[-EnablePacketDirect <Boolean>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Set-SCLogicalSwitch Cmdlet 會更新邏輯交換器的屬性。
範例
範例 1:變更邏輯交換器的最小頻寬模式
PS C:\> Get-SCLogicalSwitch -Name "LogicalSwitch01" | Set-SCLogicalSwitch -MinimumBandwidthMode "Weight"
此命令會取得名為 LogicalSwitch01 的邏輯交換器物件,並使用管線運算子將物件傳遞至 Set-SCLogicalSwitch,這會將邏輯交換器物件的最小頻帶witdth 模式變更為 Weight。
範例 2:從邏輯交換器移除所有虛擬交換器擴充功能
PS C:\> Get-SCLogicalSwitch -Name "LogicalSwitch01" | Set-SCLogicalSwitch -RemoveAllExtensions
此命令會取得名為 LogicalSwitch01 的邏輯交換器物件,並使用管線運算子將物件傳遞至 Set-SCLogicalSwitch,這會從邏輯交換器物件中移除所有虛擬交換器延伸模組。
參數
-Description
指定所指定物件的描述。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnablePacketDirect
指定 Cmdlet 是否在交換器上啟用封包直接存取。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableSriov
指出是否啟用單一根 I/O 虛擬化 (SR-IOV) 。
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 |
-LogicalSwitch
指定邏輯交換器物件。
Type: | LogicalSwitch |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-MinimumBandwidthMode
指定邏輯交換器的最小頻寬模式。 此參數可接受的值為:
- Default
- Weight
- 絕對
- 無
Type: | BandwidthMode |
Accepted values: | Default, Weight, Absolute, None |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
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 |
-PROTipID
指定觸發此動作的效能與資源最佳化 (PRO) 提示識別碼。 這可讓您稽核 PRO 秘訣。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveAllExtensions
表示所有虛擬交換器擴充功能都會從邏輯交換器中移除。
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 |
-SwitchUplinkMode
指定交換器上行模式物件。
Type: | SwitchUplinkMode |
Accepted values: | NoTeam, Team, EmbeddedTeam |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualSwitchExtensions
指定虛擬交換器擴充物件的陣列。
若要取得虛擬交換器擴充物件,請使用 Get-SCVirtualSwitchExtension Cmdlet。
Type: | VirtualSwitchExtension[] |
Position: | Named |
Default value: | None |
Required: | False |
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 |