Creating Local Admins (Part 2)

Share |

Join PowerShell.com!
Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Award-winning PowerShellPlus


Admin Guide to PowerShell Remoting


Mastering PowerShell eBook

In a previous tip, we showed you how to create a new local admin account using ADSI. On Windows 7 and Server 2008, it is much easier to use net.exe instead:

net user AdminAccount1 /ADD
net localgroup Administrators AdminAccount1 /ADD

Twitter This Tip! ReTweet this Tip!


Posted Sep 13 2011, 06:00 AM by ps1
Copyright 2012 PowerShell.com. All rights reserved.