Add-SCNetworkConnection
添加网络连接。
语法
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>]
说明
Add-SCNetworkConnection cmdlet 添加了网络服务连接。
参数
-ConnectionType
指定网络连接类型。 此参数的可接受值为:
- 未知
- 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 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
指示作业异步运行,以便控件立即返回到命令 shell。
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 |