Adding group to local admin group on server through command line
Hi,
we need to add a group to local admin groups to a number of servers. Can this be achieved by commadn line
kits
May 1st, 2012 11:33pm
Hi Kits-
You can do this a number of ways although mostly via scripting. VBScript is one common way. See the following article for the VBScript method:
http://blogs.technet.com/b/heyscriptingguy/archive/2005/09/23/how-can-i-add-a-domain-group-to-the-local-administrators-group.aspx
You can also achieve this by using Retricted Group in Group Policy. The official documentation is a bit old and fragmented but you can get an overview at the following KB:
http://support.microsoft.com/kb/279301
Here is a bit more detail and step-by-step guide for Restricted Groups (non-Microsoft link):
http://myitforum.com/cs2/blogs/rdixon/archive/2008/06/17/how-to-add-domain-accounts-to-local-administrators-group-using-gpo.aspx
With Restricted Groups - be aware of the pros and cons and test in a test environment before you go live.
Brian
Free Windows Admin Tool Kit Click here and download it now
May 1st, 2012 11:53pm
Hi,
we need to add a group to local admin groups to a number of servers. Can this be achieved by commadn line
kits
Hi,
You can use following command on each server to manually add the account
net localgroup administrators /add domain\account
If you need to automate the solution and add the account on several servers, you need a script as suggested above.
A UNIVERSE without WINDOWS is CHAOS !
This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
About Me ?
May 2nd, 2012 12:15am
Pleae provide excat scriptkits
Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2012 2:00am
Use GP and do it here
http://community.spiceworks.com/how_to/show/2123http://www.arabitpro.com
May 2nd, 2012 2:23am
Pleae provide excat script
kits
Please refer following discussions...
login Script to add user to local admin group.
http://social.technet.microsoft.com/Forums/ar/winservergen/thread/5fd946e7-d599-4497-8257-01a3713f7184
Add Domain User as Local Administrator
http://community.spiceworks.com/scripts/show/152-add-domain-user-as-local-administratorA UNIVERSE without WINDOWS is CHAOS !
This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
About Me ?
Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2012 2:49am
Hi Kits-
You can do this a number of ways although mostly via scripting. VBScript is one common way. See the following article for the VBScript method:
http://blogs.technet.com/b/heyscriptingguy/archive/2005/09/23/how-can-i-add-a-domain-group-to-the-local-administrators-group.aspx
You can also achieve this by using Retricted Group in Group Policy. The official documentation is a bit old and fragmented but you can get an overview at the following KB:
http://support.microsoft.com/kb/279301
Here is a bit more detail and step-by-step guide for Restricted Groups (non-Microsoft link):
http://myitforum.com/cs2/blogs/rdixon/archive/2008/06/17/how-to-add-domain-accounts-to-local-administrators-group-using-gpo.aspx
With Restricted Groups - be aware of the pros and cons and test in a test environment before you go live.
Brian
May 2nd, 2012 6:43am
Hi,
we need to add a group to local admin groups to a number of servers. Can this be achieved by commadn line
kits
Hi,
You can use following command on each server to manually add the account
net localgroup administrators /add domain\account
If you need to automate the solution and add the account on several servers, you need a script as suggested above.
A UNIVERSE without WINDOWS is CHAOS !
This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
About Me ?
Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2012 7:04am
Use GP and do it here
http://community.spiceworks.com/how_to/show/2123http://www.arabitpro.com
May 2nd, 2012 9:13am
Pleae provide excat script
kits
Please refer following discussions...
login Script to add user to local admin group.
http://social.technet.microsoft.com/Forums/ar/winservergen/thread/5fd946e7-d599-4497-8257-01a3713f7184
Add Domain User as Local Administrator
http://community.spiceworks.com/scripts/show/152-add-domain-user-as-local-administratorA UNIVERSE without WINDOWS is CHAOS !
This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
About Me ?
Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2012 9:39am