Alan's Blog

"Yeah. I wrote a script that will do that."

Menu
  • About My Blog
Menu

The Local Administrator Password Manager v 1.1

Posted on April 4, 2009July 2, 2011 by Alan

The local administrator password on our workstations and servers should be changed regularly, and when an administrator leaves the staff. There are many ways to do this: with scripts, Hyena, and others, but none of those let you evaluate what needs to be changed and what has been changed. I wrote the Local Administrator Password Manager v 1.1 (LAPMan) to address that need.  First, you import the computer accounts from AD.  Second, you connect to the systems and get the current administrator data.  You can see what the local admin account name is, and the account age (how long since password last set).  In the information screen you can check a box which exempts systems from being changed. Each time you run the “Get Info” button, it only tries to get the information from systems where this has not yet been collected. 

The change password screen lets you choose between workstations and servers. It asks for the local administrator name — but even if the name is not correct, the password will be updated.  On a successful name change the database is updated.  You can run the change password routine multiple times to pickup laptops and other systems that were off-line.  Each time this routine is launched, only the unchanged systems will be done.

On the PCInfo page is a tools tab.  Some interesting things there that may help you, such as ping, manage the PC, and others.

The program is multi-threaded, launching multiple copies of the password changing script at time.  The impact to the network from this traffic is minimal.  The program lets you select your OU, and I suggest you begin with a test OU.  I appreciate your feedback and comments. 

LAPMan requires Microsoft Access.

Leave a Reply

You must be logged in to post a comment.

Search

Please Note

All the scripts are saved as .txt files. Newer files have a “View Script” button which will let you save or open a script in notepad. For earlier posts, the easiest way to download with IE is to right click on the link and use “Save Target As”. Rename file from Name_ext.txt to Name.ext.

To see a full post after searching, please click on the title.

PowerShell Scripts were written with version 3 or later.

https connections are supported.

All new users accounts must be approved, as are comments. Please be patient.  If you find a post error or a script which doesn’t work as expected, I appreciate being notified.  My email is my first name at the domain name, and you are welcome to contact me that way.

Tags

1E ACLS Active Directory ActiveDirectory ADSI Advanced Functions Audit Change Administrator Password COMObject Computer Groups DateTime Desktop DNS Excel FileScriptingObject Forms General GPO GPS Group Policy Hacks ISE Lockout logons NAV740 Nessus OU OU permissions Outlook Pick Folder Power PowerShell Powershell Scriptlets RDP SCCM schedule reboot Scripting Security Shell.Application user information VBA Windows Update WMI WordPress WPF

Categories

akaplan.com

  • Back to Home Page

Archives

Scripting Sites

  • A Big Pile of Small Things
  • Adam, the Automator
  • Art of the DBA
  • Ashley McGlone
  • Boe Prox
  • Carlo Mancini
  • DexterPOSH
  • Doug Finke
  • Jaap Brasser's Blog
  • JeffOps The Scripting Dutchman
  • Jonathan Medd's Blog
  • Keith Hill's Blog
  • LazyWinAdmin
  • Nana Lakshmanan
  • PowerShell Magazine
  • PowerShell Team Blog
  • PowerShell.org
  • PwrShell.net
  • Richard Siddaway's Blog
  • Ryan Yates' Blog
  • Skatterbrainz
  • The Lonely Administrator

SQL Site

  • Art of the DBA

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2025 Alan's Blog | Theme by SuperbThemes

Terms and Conditions - Privacy Policy