Hi,
I want to enable RDP on all my workstations so I added this chunk of
code to my login script.
' ******************************************************************
' This part will enable RDP on the workstation
' ******************************************************************
Dim objReg, strKeyPath
Const HKLM = &H80000002
strKeyPath = "SYSTEM\CurrentControlSet\" _
& "Control\Terminal Server"
Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &
strComputer & "\root\default:StdRegProv")
objReg.SetDWORDValue HKLM, strKeyPath, _
"fDenyTSConnections", "0" '0 enables RDP; 1 disables RDP
I receive no errors but it just doesn't work! Can any one see anything
wrong with the above code?
Thanks.