Enable-AzStackHCIRemoteSupport
啟用遠端支援。
語法
Enable-AzStackHCIRemoteSupport
[-AccessLevel] <String>
[[-ExpireInMinutes] <Int32>]
[[-SasCredential] <String>]
[-AgreeToRemoteSupportConsent]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
啟用遠端支援允許授權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
控制可執行的遠端作業。 這可以是 Diagnostics 或 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 |