Solved

A script that will change name of local admin from "1" to "something" for all the computers on the network

Posted on 2009-07-13
7
161 Views
Last Modified: 2013-11-25
Hello Expert
I am trying to write a script that will change the name of the local admin from "1" to"something" for all the computers on the network.
Please help
0
Comment
Question by:jimmy1829
  • 4
  • 3
7 Comments
 
LVL 83

Accepted Solution

by:
oBdA earned 500 total points
ID: 24842513
You don't need a script, you can do that with a group policy:
To rename the Administrator account using the Group Policy Management Console
http://technet.microsoft.com/en-us/library/cc747484(WS.10).aspx
HOW TO: Rename the Administrator and Guest Account in Windows Server 2003
http://support.microsoft.com/kb/816109
0
 

Author Comment

by:jimmy1829
ID: 24842564
thanks oBdA.
is this going to apply to all the computers in the network?
Do the computers have to be restarted to make the change?
0
 
LVL 83

Expert Comment

by:oBdA
ID: 24842621
To which machines it applies is only depending on where you link the GPO with the "rename administrator" policy.
For starters, you can just link it to an OU with just a few test machines in it. Once you've made sure it's working as it should, apply it to the other OUs where the machines are  for which you want to have the administrator renamed.
The machines don't have to be restarted, but it might take up to 90 minutes to apply the setting by themselves (unless you run a "gpupdate /target:computer" on them).
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:jimmy1829
ID: 24842832
thanks again
how about change the password as well?
0
 
LVL 83

Assisted Solution

by:oBdA
oBdA earned 500 total points
ID: 24843016
That's not possible with a policy, but you can do that remotely, for example, with PsPassWd: http://technet.microsoft.com/en-us/sysinternals/bb897543.aspx.
0
 

Author Comment

by:jimmy1829
ID: 24843305
thanks, I will try them
0
 

Author Comment

by:jimmy1829
ID: 24849216
Thanks oBdA
it worked! Great solution!
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need sample Angular apps for study 4 90
DHCP server 6 61
Intel Server Board SE7525GP2 Doesn't Recognize Full Hard Drive Capacity 4 108
Big Problem with Redirected Folder 8 44
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question