I am writing a program that takes a list of servers and enables/disables RDP. Currently I am utilizing psexec and up in till this morning, everything worked. I made no change in code/usernames/passwords and today I am getting the following error from psexec:
c:\Temp>PsExec.exe \\KEN-SQL-001 -u administrator -p password cmd PsExec v2.11 - Execute processes remotely Copyright (C) 2001-2014 Mark Russinovich Sysinternals - www.sysinternals.com Could not start PSEXESVC service on KEN-SQL-001: Access is denied.
I have done a ton of things using winrm before but am having the hardest time finding information involving RDP. Is it possible to enable/disable RDP using WinRM?