你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Enable-AzStackHCIRemoteSupport
启用远程支持。
语法
Enable-AzStackHCIRemoteSupport
[-AccessLevel] <String>
[[-ExpireInMinutes] <Int32>]
[[-SasCredential] <String>]
[-AgreeToRemoteSupportConsent]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
启用远程支持允许授权Microsoft支持用户根据授予的访问级别远程访问设备进行诊断或修复。
示例
示例 1:
Enable-AzStackHCIRemoteSupport -AccessLevel Diagnostics -ExpireInMinutes 1440 -SasCredential "Sample SAS"
Proceed with enabling remote support?
[Y] Yes [N] No: Y
Enabling Remote Support for 'Diagnostics' expiring in '1440' minutes.
Using provided SAS credential to make remote support connection.
Remote Support successfully Enabled.
State : Active
CreatedAt : 3/29/2022 10:29:19 AM +00:00
UpdatedAt : 3/29/2022 10:29:19 AM +00:00
TargetService : PowerShell
AccessLevel : Diagnostics
ExpiresAt : 3/30/2022 10:29:18 AM +00:00
SasCredential :
在计算机上启用远程支持
示例 2:
Enable-AzStackHCIRemoteSupport -AccessLevel DiagnosticsRepair -ExpireInMinutes 1440 -SasCredential "Sample SAS" -AgreeToRemoteSupportConsent
Enabling Remote Support for 'Diagnostics' expiring in '1440' minutes.
Using provided SAS credential to make remote support connection.
Remote Support successfully Enabled.
State : Active
CreatedAt : 3/29/2022 10:29:19 AM +00:00
UpdatedAt : 3/29/2022 10:29:53 AM +00:00
TargetService : PowerShell
AccessLevel : Diagnostics
ExpiresAt : 3/30/2022 10:29:53 AM +00:00
SasCredential :
通过提供同意启用悔改支持。 在这种情况下,系统不会提示用户同意
参数
-AccessLevel
控制可执行的远程作。 这可以是诊断或 DiagnosticsAndRepair。
类型: | String |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-AgreeToRemoteSupportConsent
自选。 如果设置为 true,则记录用户同意(如提供),并继续不提示。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ExpireInMinutes
类型: | Int32 |
Position: | 2 |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-SasCredential
混合连接 SAS 凭据。
类型: | String |
Position: | 3 |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |