Skip to main content

Windows - Local Administrator Process

Summary

Feb 2023 - See Updated Script - Windows - Administrator account process

This script is used to create and set a local Administrator password for a client.

Time Saved by Automation: 10 minutes

Sample Run

Sample Run

Variables

VariableDescription
passwordIDStores the password ID from the password table of the password title provided in the global parameter.
PrecedingInstanceStores the running thread ID to ensure whether the script is running or not.

Global Parameters

NameExampleRequiredDescription
PasswordTitleLocal Administrator AccountTrueStores the title name from the password tab whose password is required to reset.

User Parameters

NameExampleRequiredDescription
NewPassword*********TrueRequired to reset the password of the specified account.

Process

The script will start by checking if the password entry already exists for the client. If it does, the script will proceed to set the local Administrator password to the existing password. If the password does not exist, the script will create a password using the passed "NewPassword" parameter. If a parameter is not passed, the script will error out.

Output

  • Script log