Rename, Enable and Reset Local Administrator

This script will first rename the local administrator account, then enables it and sets the password. I thought it would be fun to use part of the service tag as the password, as you see in line 5. Feel free to comment that line out and set it to whatever you desire. Be sure to set the execution policy to remotesigned to run the script.

Source Code

This script has not been checked by Spiceworks. Please understand the risks before using it.

this is interesting - I've been reading a lot about this to avoid GPO vulnerabilities like this: http://www.grouppolicy.biz/2014/05/group-policy-preferences-password-behaviour-change-ms14-025/ . But your script would have the admin password in a text file. Which would have to be stored somewhere, either on the SCCM server or NETLOGON. Is this any more secure than GPO? Thanks

Same, this pointed me in the correct direction. Result of it can be found here (including issues I ran into):
https://community.spiceworks.com/topic/1879827-powershell-rename-local-admin-account-to-service-tag?page=1#entry-6299474