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
160 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

929 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now