New-DefaultManagementGroupConnection
创建默认管理组连接。
语法
Default (默认值)
New-DefaultManagementGroupConnection
[[-managementServerName] <String>]
[[-persistConnection] <Boolean>]
[[-interactive] <Boolean>]
[<CommonParameters>]
说明
New-DefaultManagementGroupConnection cmdlet 创建默认管理组连接。
示例
示例 1:创建连接
PS C:\>New-DefaultManagementGroupConnection -managementServerName "server01.contoso.com"
此命令创建默认管理组连接。
参数
-interactive
指定连接是否为交互式连接。
参数属性
| 类型: | Boolean |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 2 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-managementServerName
指定连接管理服务器的名称。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 0 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-persistConnection
指定连接是否仍然存在。
参数属性
| 类型: | Boolean |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 1 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。