Azure VM远程桌面停止工作 [英] Azure VM Remote desktop stopped working
问题描述
我的Azure VM不再允许我使用远程桌面进行连接.我收到错误消息"RDP断开连接! 4发生内部错误. 我已经遍历了这些页面上所有建议的步骤 https://docs.microsoft.com/zh-cn/azure/virtual-machines/windows/detailed-troubleshoot-rdp,但都没有解决此问题. Azure VM资源运行状况良好,并且VM本身正在运行.
有人对我如何解决这个问题有其他想法吗?
尝试一下:
1)打开一个空白的记事本
icacls C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys/t/c> c:\ temp \ BeforeScript_permissions.txt
2)将以下内容粘贴到其中:
icacls C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys/t/c/grant"System:(F)"
icacls C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys/t/c/grant网络服务:(R)"
icacls C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys/t/c/grant"Administrators:(F)"
icacls C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys/t/c> c:\ temp \ AfterScript_permissions.txt
重新启动服务TermService –Force
3)将文件另存为ResetRSAkeys.ps1
4)导航到Azure门户,然后选择有问题的VM
5)选择扩展名
6)选择添加
7)选择自定义脚本扩展
8)上传我们刚创建的文件
9)选择确定
10)返回扩展程序"选项卡,等待自定义脚本应用(说成功)
11)尝试将RDP连接到VM
12)如果失败,请尝试重新启动计算机并登录
Hi,
My Azure VM is no longer allowing me to connect using remote desktop. I receive error message "RDP disconnected! 4 An internal error has occurred."
I've run through all the suggested the steps on these pages
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/troubleshoot-rdp-connection
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/detailed-troubleshoot-rdp and none of them fixed the issue. The Azure VM Resource health is fine, and the VM itself is running.
Does anyone have any other ideas on how I can get this resolved?
Try this:
1) Open a blank notepad
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c > c:\temp\BeforeScript_permissions.txt
2) Paste the following into it:
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "System:(F)"
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "NETWORK SERVICE:(R)"
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "Administrators:(F)"
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c > c:\temp\AfterScript_permissions.txt
Restart-Service TermService –Force
3) Save the file as ResetRSAkeys.ps1
4) Navigate to the Azure Portal and select the VM in question
5) Select Extensions
6) Select Add
7) Select Custom Script Extension
8) Upload the file we just created
9) Select OK
10) Go back to the Extensions Tab and wait for the custom script to apply (Say successful)
11) Attempt to RDP to the VM
12) If fails, attempt to reboot the machine and login
这篇关于Azure VM远程桌面停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!