Logon script

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.
 
R

Ray at

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
 
B

bxr222

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

Thanks.
 
R

Ray at

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top