|
Answer» Hello,
I want to write a BATCH file that will add the domain admin group to administrators local group at each machines in my domain.
I wiil distribute this batch file with GPO.
This file will run with the logon-user's permission and most of the users arent local administrator [size=24]!!![/size] Luckily I have 1 local administrator user in all the machine that CALLED "master"
I wrote this batch file: ------------------------------------------------------------------------
runas /user:master " net localgroup administrators /add "domain admin" " ------------------------------------------------------------------------
but then I must ENTER the password form this user.
how can i enter his pass to the batch file[size=24]?[/size]
I just want this command to be [size=16]RunAs[/size] master user.
I know how to do it with Impersonate in C# but i want to write it HERE.
Help me..........
Thanks for all:-)
|