Im trying to make a program that disable remote desktop infinitely. I have the infinite part down but when I input the command through notepad, it doesnt run the command and instead repeatedly says "ERROR: Access is denied" Im in administrator so I dont know what could be denying me access. This is my code by the way: *** off
:a
reg augment "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Administer\\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f
goto a
Let me know what I should do to fix the issue, thanks!
|