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
162 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 84

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 84

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 84

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Bulk Reorder File Names 4 69
ROBOFTP UNZIP 1 53
Batch File search for Drive Letter 8 44
PS call executable Files in Order 4 9
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

808 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