Get-SCNetworkService
获取网络服务。
语法
Get-SCNetworkService
[-VMMServer <ServerConnection>]
[-All]
[-ServiceType <NetworkServiceType>]
[<CommonParameters>]
Get-SCNetworkService
[-VMMServer <ServerConnection>]
[-Name <String>]
-ID <Guid>
[<CommonParameters>]
Get-SCNetworkService
[-VMMServer <ServerConnection>]
-Name <String>
[<CommonParameters>]
说明
Get-SCNetworkService cmdlet 获取网络服务。
参数
-All
指示此 cmdlet 获取与父对象无关的所有从属对象。
例如,该命令 Get-SCVirtualDiskDrive -All
获取所有虚拟磁盘驱动器对象,而不考虑每个虚拟磁盘驱动器对象关联的虚拟机对象或模板对象。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ID
将数字标识符指定为特定对象的全局唯一标识符或 GUID。
Type: | Guid |
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 |
-ServiceType
指定网络服务的类型。 此参数的可接受值为:
- 未指定
- 网关
- LoadBalancer
- NetworkVirtualizationPolicy
- NetworkManager
- VirtualSwitchExtensionManager
- 网络交换机
Type: | NetworkServiceType |
Accepted values: | Unspecified, Gateway, LoadBalancer, NetworkVirtualizationPolicy, NetworkManager, VirtualSwitchExtensionManager, NetworkSwitch |
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 |