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
159 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
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.
The viewer will learn how to count occurrences of each item in an array.
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…

760 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

20 Experts available now in Live!

Get 1:1 Help Now