Re: Enabling RDP via a login script
- From: "K.J. 44" <Holleran.Kevin@xxxxxxxxx>
- Date: 8 Nov 2006 12:55:17 -0800
I will try that. That makes sense because it is only a handful of the
PCs. Probably the ones that haven't been rebooted since the script
ran.
Thanks!
bob m wrote:
im sure you can after a reboot.
"K.J. 44" <Holleran.Kevin@xxxxxxxxx> wrote in message
news:1162996502.030067.304030@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Okay, nevermind, the script is working, RDP is enabled, but I just
cannot seem to RDP in on the PC.
K.J. 44 wrote:
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.
.
- References:
- Enabling RDP via a login script
- From: K.J. 44
- Re: Enabling RDP via a login script
- From: K.J. 44
- Re: Enabling RDP via a login script
- From: bob m
- Enabling RDP via a login script
- Prev by Date: Re: Script Not Totally Working in Scheduled Tasks
- Next by Date: Re: does anyone have a snipped handy for this?
- Previous by thread: Re: Enabling RDP via a login script
- Next by thread: Zeile in File mit VB-Script austauschen
- Index(es):
Relevant Pages
|