Enable Administrator account
Must be run while in Full OS
The Enable Administrator account step ensures that the local Administrator account is enabled and configured with a password. This can be useful for troubleshooting.

The value of the AdminPassword task sequence variable is used as the password. If this variable is not set, a default value is retrieved.
As a best practice, use Windows LAPS or a similar tool to rotate the local Administrator account password to a unique value and securely store it for future use.
Setting the Default Administrator Password
To set the default password, use the AdminPassword variable. Set this variable before the Enable Administrator account step. You can set the variable using PowerShell or the built-in Set variable step. Note that variables are written to the DeployR log. As mentioned above, use LAPS to manage and secure the local Administrator account after OSD.
Behind the scenes
This step retrieves the password from the Secure password store or from the task sequence variable, then enables the local Administrator account and sets its password.
Last updated

