Solved

Microsoft, Server 2003, sp2, Active Directory

Posted on 2008-06-25
5
176 Views
Last Modified: 2010-04-21
Hello,
I need to change the local admin pswd and admin name in AD to all of our workstations. I have over 1000 workstaion. I want to be able to push it with AD, it is possible? Thanks
0
Comment
Question by:FonziM
5 Comments
 
LVL 8

Expert Comment

by:DenverRick
Comment Utility
You can use Group Policy to rename the account, however, you will have to write a script to change the password as this cannot be done via GP.

Computer Configuration > Windows Settings > Security Settings > Local
Policies > Security Option you will find "Accounts: Rename administrator
account"

0
 
LVL 7

Accepted Solution

by:
txhockey26 earned 500 total points
Comment Utility
Following is a script you can use to change the local admin password on the workstations in your network.

<This first line is the path in AD where all your workstations sit>
Set objOU = GetObject("LDAP://OU=Workstations, OU=ou, DC=domain, DC=local")  
objOU.Filter = Array("Computer")

For Each objItem in objOU
    strComputer = objItem.CN
    Set objUser = GetObject("WinNT://" & strComputer & "/<local admin name>")
    objUser.SetPassword("<put password here>")
Next
0
 
LVL 8

Expert Comment

by:DenverRick
Comment Utility
Nice script tx.
DR
0
 
LVL 30

Expert Comment

by:LauraEHunterMVP
Comment Utility
Another option is to deploy the Group Policy Preferences extensions, which will allow you to both rename and change passwords via policy:

http://www.windowsecurity.com/articles/Top5-Security-Settings-Group-Policy-Windows-Server-2008.html

Deployment caveat - requires you to use a Vista SP1 workstation to create/manage your GPOs. Good news is that it doesn't require 2008 AD, and there's down-level support for GP Preferences on XP and 2003.
0
 

Author Closing Comment

by:FonziM
Comment Utility
Thanks. That work.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

There are two modes of restricted groups GPOs. Replacing mode:   Additive mode:   How do they work? Replacing mode: Everything (users, groups, computers) that is member of the local administrators group will be cleared out. After th…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

743 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

16 Experts available now in Live!

Get 1:1 Help Now