Logon script

  • Thread starter Thread starter bxr222
  • Start date Start date
B

bxr222

Hi,
I have applied the following logon script via Group
Policy.

Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegWrite "HKCU\Software\Policies\Microsoft\Securit
y\CheckAdminSettings", 1, "REG_DWORD"

It works just dandy when logging onto the domain as the
average user but fails when logging into terminal services
or Citrix. I don't think it is a security context issue. I
have set the run as property to the domain admin account.
Any help would be appreciated. Thanks.
 
When happens when you log on to the TS as a domain admin and try to manually
set this value yourself using regedit?

What happens when you enter this line in your script?

WScript.Echo "Yes indeed, the script is running."

Ray at work
 
Script runs just fine when logged on as Admin. The echo
did not appear when logged on as Joe User.

Thanks.
 
So then it sounds to me that it's not that your script is failing; it's that
it isn't running. Is that the same conclusion you came to by what you just
tested?

Ray at work
 
Back
Top