Rename Local Administrator Password
March 3rd, 2010 | Blog | No Comments »
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”)