Question

Locked

Why is this logon script getting a syntax error?

By mahle ·
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 conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Back to Networks Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums