Add-SCNetworkConnection
新增網路服務連線。
Syntax
Add-SCNetworkConnection
[-VMMServer <ServerConnection>]
[-Service] <NetworkService>
-LogicalNetworkDefinition <LogicalNetworkDefinition>
[-IPv4Address <String>]
[-IPv6Address <String>]
[-Description <String>]
-Name <String>
[-ConnectionType <NetworkConnectionType>]
[-NetworkAdapter <NetworkServiceAdapterInfo>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Add-SCNetworkConnection
[-VMMServer <ServerConnection>]
[-Service] <NetworkService>
-VMSubnet <VMSubnet>
[-IPv4Address <String>]
[-IPv6Address <String>]
[-Description <String>]
-Name <String>
[-ConnectionType <NetworkConnectionType>]
[-NetworkAdapter <NetworkServiceAdapterInfo>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Add-SCNetworkConnection Cmdlet 會新增網路服務連線。
參數
-ConnectionType
指定網路連線類型。 此參數可接受的值為:
- Unknown
- FrontEnd
- BackEnd
Type: | NetworkConnectionType |
Accepted values: | Unknown, FrontEnd, BackEnd |
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 |
-IPv4Address
指定 IPv4 位址。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPv6Address
指定 IPv6 位址。
Type: | String |
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 |
-LogicalNetworkDefinition
指定邏輯網路定義 (也稱為網站) ,其中包含 IP 位址池所服務的子網。 子網是由 VMSubnet 參數所指定。
Type: | LogicalNetworkDefinition |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定網路物件的名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NetworkAdapter
指定網路介面卡資訊物件。
Type: | NetworkServiceAdapterInfo |
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 |
-RunAsynchronously
表示作業會以非同步方式執行,讓控制項立即返回命令殼層。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Service
指定網路服務物件。
Type: | NetworkService |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定 Virtual Machine Manager (VMM) 伺服器物件。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMSubnet
指定虛擬機器子網物件。
若要取得 VMSubnet 物件,請使用 Get-SCVMSubnet Cmdlet。
Type: | VMSubnet |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |