Women in Technology

Hear us Roar



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

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Remotely Enable Remote Desktop
    2010-04-08 07:58:04  bonedog73 [View]

    Thanks!

    Just used this on a bunch of my domain machines where this wasnt enabled. Noticed I didnt need to reboot to make it work..
  • Remotely Enable Remote Desktop
    2006-03-08 15:47:02  thomas9406 [View]

    This worked great! I used PS Tools to execute the batch file remotely.
    • Remotely Enable Remote Desktop
      2006-03-29 05:51:03  w1nstrel [View]

      Yeah, PSEXEC.EXE is great... In this case, you shouldn't need it, since REG.EXE can write to a remote registry on it's own. The batch script that SatKDOT wrote includes the ability to do it like this: remoteon.cmd <pcname>