Why is this logon script getting a syntax error? - TechRepublic
Question
August 23, 2010 at 08:40 AM
mahle

Why is this logon script getting a syntax error?

by mahle . Updated 15 years, 10 months ago

I am setting a logon script to run when users logon because previously every domain user is a memebr of the local admins group and I don’t want that anymore.

The script is:
NET LOCALGROUP Administrators “domain\Domain Users” /DELETE

Where domain is my server domain.

I am trying to test it on my computer and when I logon nothing changes, and when I try to run the vbs on my computer I get an error saying Expected End of statement. Line 1 char 16.

I am new to this and would appreciate any help. Thanks!

This discussion is locked

All Comments