ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
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


1 to 2 of 2
  1. Remotely Enable Remote Desktop
    2010-04-08 07:58:04  bonedog73 [View]

  2. Remotely Enable Remote Desktop
    2006-03-08 15:47:02  thomas9406 [View]

    • Remotely Enable Remote Desktop
      2006-03-29 05:51:03  w1nstrel [View]

1 to 2 of 2