Category filter

Script to change password of a user account on Windows devices

Users forgetting their device password is a common scenario for an IT admin. Hexnode lets admins change the password of users by deploying scripts.

Disclaimer:

The sample scripts provided below are adapted from third-party open-source sites.

Batch Script

This Batch script resets the password for a specific user. Replace USERNAME with the username of the required user and PASSWORD with the new password.

The Hexnode UEM output console displays whether the password reset has succeeded or failed.

PowerShell Script

The script given above is a configurable PowerShell script that can change the password for any specific user on a device. Mandatory configurations in the script include replacing the “Username” with the Username of the user whose password needs to be changed and the “NewPassword” with the required password.

Notes:

  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

Sample Script Repository