I have the attached a code that resets the administrator's password.
I want to know how i can modify it to ignore and continue forward with the rest of the script in case the script can't find the user "Administrator"? Since right now Im getting an error and the script stops (obviously since the user is missing).
Also, a way to indicate if the reset was successful in the form of exporting the username (Administrator) to a txt file?
strComputer = "."
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator")