Comments
Did a google search for this and your blog entry from a year ago was the 2nd hit.

Thanks for posting this.... I was ready for a long hunt. I just had to restore my work PC all last night, was in the office all day and never did enable remote desktop.

This saved me a trip into the office tomorrow.
#1 Eric Pearson (Link) on 2005-12-04 00:15
Thanks - Helped me out of a tight spot!
#2 Karl Foley (Link) on 2006-09-25 12:41
Thanks, also pulled me out of tight spot. :-)
#3 Bojan on 2007-10-09 08:00
Oh man.. you da man
#4 Randy Couture on 2009-02-07 14:10
Save this code to a text file and name it EnableRemoteConnect.vbs

==== CODE ====

'==========================================
' NAME: EnableRemoteConnect.vbs
' AUTHOR: Kevin Dondrea, Support
' DATE : 9/16/2009
' COMMENT: Enables Remote Desktop Connect feature. It does not add a user with
' permissions who can login.
'==========================================

Const HKEY_LOCAL_MACHINE = &H80000002

strComputer = "."

Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")

strKeyPath = "SYSTEM\CurrentControlSet\Control\Terminal Server"

strValueName = "fDenyTSConnections"
strValue = "0"
objReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

==== END CODE ====

This code is to Disable Remote Connect

==== CODE ====

'==========================================
' NAME: DisableRemoteConnect.vbs
' AUTHOR: Kevin Dondrea, Support
' DATE : 9/16/2009
' COMMENT: Enables Remote Desktop Connect feature. It does not add a user with
' permissions who can login.
'==========================================

Const HKEY_LOCAL_MACHINE = &H80000002

strComputer = "."

Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")

strKeyPath = "SYSTEM\CurrentControlSet\Control\Terminal Server"

strValueName = "fDenyTSConnections"
strValue = "1"
objReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

==== END CODE ====
#4.1 Kevin Dondrea (Link) on 2009-10-17 22:26
Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA