远程桌面“发生内部错误"; [英] Remote Desktop "An Internal error has occured"

查看:1486
本文介绍了远程桌面“发生内部错误";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我们无法将台式机远程连接到我一段时间未使用的某些服务器.我收到错误发生内部错误".我尝试过在TechNet上发布的多个建议,重置远程访问,无需重新部署 如有任何困难,请告知

Hi we can't remote desktop to some of my servers that haven't been used in a while.  I get the error "An internal error has occurred"  I have tried multiple suggestions posted on TechNet, resetting the remote access, Redeploying without any luck please advise

推荐答案

打开Powershell或记事本实例,并创建脚本,命名为Restore_RSA_MachineKeys_Folder_Access.ps1,内容如下:

icacls C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys/t/c> c:\ temp \ BeforeScript_permissions.txt
takeown/f"C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys" /a/r
icacls C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys/t/c/grant"NT AUTHORITY \ System:(F)"
icacls C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys/t/c/grant"NT AUTHORITY \ NETWORK SERVICE:(R)"
icacls C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys/t/c/grant"BUILTIN \ Administrators:(F)"
icacls C:\ ProgramData \ Microsoft \ Crypto \ RSA \ MachineKeys/t/c> c:\ temp \ AfterScript_permissions.txt
重新启动服务TermService -Force

通过受影响的VM上门户中提供的自定义脚本扩展"来运行脚本.

重试访问
Open a Powershell or notepad instance and create the scripted named Restore_RSA_MachineKeys_Folder_Access.ps1 with the following content:

icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c > c:\temp\BeforeScript_permissions.txt
takeown /f "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" /a /r
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "NT AUTHORITY\System:(F)"
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "NT AUTHORITY\NETWORK SERVICE:(R)"
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "BUILTIN\Administrators:(F)"
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c > c:\temp\AfterScript_permissions.txt
Restart-Service TermService -Force

Run the script through the Custom Script Extension available in the portal on the impacted VM. 

Retry the access


这篇关于远程桌面“发生内部错误";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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