Link to home
Start Free TrialLog in
Avatar of techlabtest
techlabtest

asked on

Batch file

i have this script: net localgroup Administrators "techlabtest\Finance" /Add
techlabtest is my domain
Finance is my security group
Inside Finance there are 3 domain user which do not have admin access.
I want to give them admin access at the same time.

Just for testing my script, When i run it manually on a user pc, i got access denied.

When i run it on an administrators account, it works well.

Please help me.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
the above holds true if you are launching the script manually.

However, if you assign the script as a startup script in a GPO, then it will probably work the next time the machine reboots.

We do something similar here with VBS
Avatar of techlabtest
techlabtest

ASKER