AnoopGeorge.com

Rename Local Administrator Password

3.03.2010

Blog

here is a script to rename the local administrator password using powershell… it renames the administrator account to the “!computerName”…

Remember to run powershell as administrator.

$Bang = “!”
$NewComputerName = gc env:computername
$NewAdminAccount = $Bang+$NewComputerName $admin = [ADSI]“WinNT://./Administrator,user” $admin.psbase.Rename(“$NewAdminAccount”)

You must be logged in to post a comment.