Turn on and off a remote machines remote dektop

Hi,

I want a way to tick remote desktop check box on all machines in the file and even remove the tick.

Mycomputer > Properties > Remote > Remote desktop.

Regards
Sharath
LVL 11
bsharathAsked:
Who is Participating?
 
Alan Huseyin KayahanCommented:
       Hi Sharath
                  Write the computer names which you want to allow/check box into allowcomps.txt and the computer names which you want to deny/uncheck box in denycomps.txt
                for /f %x in (c:\allowcomps.txt) do reg add "\\%x\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
 
                for /f %x in (c:\denycomps.txt) do reg add "\\%x\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f

Regards
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.