Reyesrj
asked on
command line Interface
Hi All,
Could someone tell me how to run a .cmd script to enable remote desktop?
I would like to enable "Allow connections only from computers running Remote Desktop with Network Level Authentication (more secure). And Add administrator to the selected users list.
I'm using windows 7
Thanks in advance
Could someone tell me how to run a .cmd script to enable remote desktop?
I would like to enable "Allow connections only from computers running Remote Desktop with Network Level Authentication (more secure). And Add administrator to the selected users list.
I'm using windows 7
Thanks in advance
ASKER
Thanks Kimputer,
Sorry I'm new at this.
How do I make a ts.reg file and where do I place it.
I am a member of the administrator group. We don't use Active directory on our network.
Sorry I'm new at this.
How do I make a ts.reg file and where do I place it.
I am a member of the administrator group. We don't use Active directory on our network.
Open notepad, copy & paste the code from the code block. Save file as ts.reg (make sure you have control over the file extension, rename to ts.reg when you find out it was saved as ts.reg.txt). Create batch file the same way.
Preferably save it at a same location where you will execute the batch file, so it could be anywhere.
Preferably save it at a same location where you will execute the batch file, so it could be anywhere.
ASKER
THANKS!!!!!
That worked perfect!!!
One last thing, I hope you don't mind. And it may not really matter because the above worked perfect.
But, I have seen a script where the script showed something like %host%\administrator. How could I apply this in the above script. We will be cloning workstations and the master workstation will run the script in the taskscheduler, one time, after the client workstations reboot.
Thanks
That worked perfect!!!
One last thing, I hope you don't mind. And it may not really matter because the above worked perfect.
But, I have seen a script where the script showed something like %host%\administrator. How could I apply this in the above script. We will be cloning workstations and the master workstation will run the script in the taskscheduler, one time, after the client workstations reboot.
Thanks
ASKER
I just noticed that the radio button next to, "Allow Connections only from computers running Remote Desktop with Network Level Authentication (more secure) is not marked. Please see attachment. The administrator is in the selected users list.
Please help.
Please help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Kimputer!!!
I was able to figure out how to write to the registry and this is what was missing:
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\C ontrol\"Te rminal Server"\WinStations\RDP-Tc p]
"UserAuthentication"=dword :00000001
Perfect now, thanks to you!
I was able to figure out how to write to the registry and this is what was missing:
[HKEY_LOCAL_MACHINE\SYSTEM
"UserAuthentication"=dword
Perfect now, thanks to you!
Open in new window
in the batch file (same folder as reg file):
Open in new window
Needless to say, only admins can execute this successfully.