Article:
 |
|
Windows Server Hacks: Remotely Enable Remote Desktop
|
| Subject: |
|
Remotely Enable Remote Desktop |
| Date: |
|
2005-04-21 08:42:42 |
| From: |
|
SatKDOT
|
|
|
Here is a batch file that does the same thing.
Also works for XP. Save the following as: remoteon.cmd or, whatever you like.
@echo off
setlocal
if {%1}=={} goto syntax
:loop
if {%1}=={} goto finish
set remote="\\%1\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server"
shift
reg.exe ADD %remote% /v fDenyTSConnections /t REG_DWORD /d 0 /f>nul 2>&1
if NOT %ERRORLEVEL% EQU 0 @echo %remote% NOT found.
goto loop
:syntax
@echo Syntax: RemoteDesktop Computer1 [Computer2 .... Computern]
goto loop
:finish
endlocal
Go to a command prompt and type remoteon computername
|
Showing messages 1 through 2 of 2.
-
Remotely Enable Remote Desktop
2006-03-08 15:47:02
thomas9406
[Reply | View]
-
Remotely Enable Remote Desktop
2006-03-29 05:51:03
w1nstrel
[Reply | View]