G
Grant
I created a batch file that adds users to the local machines administrators
group account at logon if theyre not already there.
net localgroup administrators "domain_name\user1" /add
net localgroup administrators "domain_name\user2" /add
Wierd thing is that only when user1 is part of the admin group will the
script add user2. If user1 is not already part of the localAdmin group then
user2 (or user1) does not get added.
So the script looks like it uses the credentials of whoever is logging in at
the time. How would get this to run under a different account name?
Thanks.Grant
group account at logon if theyre not already there.
net localgroup administrators "domain_name\user1" /add
net localgroup administrators "domain_name\user2" /add
Wierd thing is that only when user1 is part of the admin group will the
script add user2. If user1 is not already part of the localAdmin group then
user2 (or user1) does not get added.
So the script looks like it uses the credentials of whoever is logging in at
the time. How would get this to run under a different account name?
Thanks.Grant