Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Local Admin Account Name Remotely

Status
Not open for further replies.
Feb 17, 2004
10
0
0
US
Greetings,

I am trying to figure out a way to remotely change the local Administrator account name on all the 1300+ workstations in our network. Any ideas would be appreciated.

Thank You
 
Just the name?

The resource kits for Win2k and Windows 2003 include cusrmngr.exe that will let you do this.

And example use, with a script, see the nearly last post here: thread96-669062

Or just add an additional local administrator:

Example from the MS Scripting Guide:

Note #1: use "." for the individual computer
Note #2: Replace 'Kenmyer' with your text

strComputer = "MyComputer"
Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators,group")
Set objUser = GetObject("WinNT://" & strComputer & "/kenmyer,user")
objGroup.Add(objUser.ADsPath)

See:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top