Azure VM远程桌面停止工作 [英] Azure VM Remote desktop stopped working

查看:127
本文介绍了Azure VM远程桌面停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Azure VM不再允许我使用远程桌面进行连接.我收到错误消息"RDP断开连接! 4发生内部错误. 我已经遍历了这些页面上所有建议的步骤 https://docs.microsoft.com/zh-cn/azure/virtual-machines/windows/detailed-troubleshoot-rdp,但都没有解决此问题. Azure VM资源运行状况良好,并且VM本身正在运行.  

有人对我如何解决这个问题有其他想法吗?

解决方案

尝试一下:

1)打开一个空白的记事本
2)将以下内容粘贴到其中:

icacls C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys/t/c> c:\ temp \ BeforeScript_permissions.txt
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
2) Paste the following into it: 

icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c > c:\temp\BeforeScript_permissions.txt
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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆