Adding Domain Groups to Local Administrator Post-Installation Task Windows 7 x64 Enterprise
I'm trying to add three of our domain groups to the list of local administrators as a Post-Installation task for our K2000 Win7 x64 Enterprise build. Currently, the task loops when adding the first group and does not add the rest. This is what I currently have:
net localgroup "Administrators" "ourcollege.edu\Group1" /ADD
net localgroup "Administrators" "ourcollege.edu\Group2" /ADD
net localgroup "Administrators" "ourcollege.edu\Group3" /ADD
Any/all help is greatly appreciated - thanks!
Answers (2)
I am no expert with K2000 deployment, but if you can set some scripts:
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce /v addgroup /t REG_SZ /d "net ocalgroup \"Administrators\" \"ourcollege.edu\Group1\" /ADD "
Please note to excape the "quot" within the line.
This command will run that command at start up, once.
start /wait net localgroup Administrators ourcollege.edu\Group3 /ADD - SMal.tmcc 10 years ago
runas /user:administrator CMD
it still loops adding the first group and does not add it. - SHRIVES93 10 years ago