advertisement

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

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Remotely Enable Remote Desktop
    2006-03-08 15:47:02  thomas9406 [Reply | View]

    This worked great! I used PS Tools to execute the batch file remotely.