You can try running this code to repair WMI which needs to be in a working state for RDP
You will need to run it from an elevated powershell window.
This command needs to return that the repositories are consistent, if they are type y at the prompt.
winmgmt /verifyrepository
$result = Read-Host -Prompt "Repos in consistent state? (Y/N)"
Reboot after running this.
Code:
Stop-Service -Name "TermService" -Force
Set-Location -Path "C:\Windows\System32\Wbem"
$DLLs = Get-ChildItem *.dll
foreach ($dll in $DLLs)
{
regsvr32.exe /s "$($dll.FullName)"
}
regsvr32.exe /s "C:\Windows\System32\tscfgwmi.dll"
wmiprvse /regserver
winmgmt /verifyrepository
$result = Read-Host -Prompt "Repos in consistent state? (Y/N)"
if($result.ToLower()...