Geeks With Blogs

News

Locations of visitors to this page

View ► Sanjay Uttam [sanjay.uttam@gmail.com]'s profile on LinkedIn


Add to Google Reader or Homepage




Sanjay Uttam Predominantly .NET

Okay, this is a very easy find if you search for it…but also very handy (Thank you My Digital Life).  Save as a CMD file and use as directed…

@echo off
@echo Remote RDP Enable Script by My Digital Life
@echo -------------------------------------------
@echo.
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 No computer name or host name specified.
@echo.
@echo Syntax: RemoteDesktop Computer1 [Computer2 .... Computern]
goto loop
:finish
endlocal

Share this post :

 

Technorati Tags:
Posted on Wednesday, June 17, 2009 12:26 PM | Back to top

Copyright © Sanjay Uttam | Powered by: GeeksWithBlogs.net