Set-SCNetworkService
修改网络服务。
语法
Set-SCNetworkService
[-ProvisionSelfSignedCertificatesForNetworkService <Boolean>]
[-VMMServer <ServerConnection>]
[-NetworkService] <NetworkService>
[-Name <String>]
[-Description <String>]
[-ConnectionString <String>]
[-Manufacturer <String>]
[-Model <String>]
[-Version <String>]
[-RunAsAccount <RunAsAccount>]
[-ConfigurationProvider <ConfigurationProvider>]
[-BandwidthCapacityKBps <UInt64>]
[-RemoveBandwidthCapacity]
[-Certificate <ClientCertificate[]>]
[-AddVMHostGroup <HostGroup[]>]
[-RemoveVMHostGroup <HostGroup[]>]
[-Force]
[-AddLogicalNetworkVIP <LogicalNetwork[]>]
[-RemoveLogicalNetworkVIP <LogicalNetwork[]>]
[-AddLogicalNetworkDedicatedIP <LogicalNetwork[]>]
[-RemoveLogicalNetworkDedicatedIP <LogicalNetwork[]>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
说明
Set-SCNetworkService cmdlet 修改网络服务。
参数
-AddLogicalNetworkDedicatedIP
指定此 cmdlet 添加到现有逻辑网络数组的逻辑网络专用 IP 地址数组。
Type: | LogicalNetwork[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AddLogicalNetworkVIP
指定此 cmdlet 添加到现有逻辑网络数组的逻辑网络虚拟 IP 地址数组。
Type: | LogicalNetwork[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AddVMHostGroup
指定此 cmdlet 添加到现有主机组数组或私有云的主机组数组。
Type: | HostGroup[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BandwidthCapacityKBps
指定网络服务的带宽容量(以千字节/秒为单位) (KBps) 。
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Certificate
指定安全证书对象的数组。
Type: | ClientCertificate[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ConfigurationProvider
指定配置提供程序对象。 配置提供程序是 VMM 的插件,用于将 VMM PowerShell 命令转换为特定于某个类型的负载均衡器的 API 调用。 如果未指定配置提供程序,VMM 将使用制造商和型号信息来选择可用的配置提供程序。 如果未找到配置提供程序,则不会添加负载均衡器。
Type: | ConfigurationProvider |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ConnectionString
指定连接到虚拟交换机扩展管理器所需的信息。
Type: | String |
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 |
-Force
强制运行命令而不要求用户确认。
Type: | SwitchParameter |
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 |
-Manufacturer
指定生产物理设备的公司的名称。 此参数的可接受值为:
- a-z) (字母
- 数字 (0-9)
- 下划线 (_)
- 连字符 (-)
- 点 (.)
- 单引号 (')
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Model
指定物理设备的模型。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定网络对象的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NetworkService
指定网络服务对象。
Type: | NetworkService |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |
-ProvisionSelfSignedCertificatesForNetworkService
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveBandwidthCapacity
删除带宽容量。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveLogicalNetworkDedicatedIP
指定此 cmdlet 删除的逻辑网络专用 IP 地址数组。
Type: | LogicalNetwork[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveLogicalNetworkVIP
删除逻辑网络虚拟 IP 地址。
Type: | LogicalNetwork[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveVMHostGroup
从主机组数组或私有云中删除一个或多个主机组。
Type: | HostGroup[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsAccount
指定包含具有执行此操作权限的凭据的运行方式帐户。
Type: | RunAsAccount |
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 |
-Version
指定版本。
Type: | String |
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 |