Create a new file called LocalAdminPwdChg.vbs.
Copy this text into the file:
Set
WshShell = WScript.CreateObject (“WScript.Shell& #34;)
wshShell.Run
“Net User administrator NewPassword“
Make sure to save the file with the extension .vbs.
Create a new Group Policy to call the LocalAdminPwdChg.vbs Script.
Configure the Script under Group Policy as follows: Computer Configuration\Windows\Settings\Scripts\Startup