Category filter

Troubleshoot password policy issues on Windows devices

With Hexnode UEM, IT admins can enforce password policy on Windows devices. However, the policy association might fail due to several device-specific reasons. This document provides insight into some troubleshooting measures which you can adopt to solve issues that might occur while associating a password policy on Windows devices via Hexnode UEM.

1. Password policy not getting associated with the device successfully and returns an error message stating ‘Invalid Payloads’.

Probable cause:

This can be caused if there are any password change restricted users on the device.


Try executing the following script to check whether there is a password change restricted user on the device. You can use the Execute Custom Script action to execute a script.

Output showing the number of password restricted user accounts on the device

If the code returns an output stating that restricted user accounts are present, then execute the following script. It removes the password change restriction of the users.

Output showing the password change restriction is removed from all user accounts


In the case of Windows devices enrolled via Native Enrollment method, you would have to manually disable the ‘User cannot change password’ setting on the device end before associating the password policy again. Follow the below steps to remove the password change restriction of a user:

  1. Sign in from an administrator account.
  2. Press the Windows + R key simultaneously. Type ‘compmgmt. msc’ in the run box and Click OK.
  3. Navigate to Computer Management (Local) > System Tools > Local Users and Groups > Users.
  4. Double-click on the user’s name whose password change restriction you want to remove.
  5. Under the General tab, uncheck the option ‘User cannot change password’.
  6. Click Apply and then press OK.

2. Password policy fails to associate with the device and returns an error message displaying ‘password->MinDevicePasswordComplexCharacters->Command failed].’

Probable cause:

There are two possible cases where the password policy will be failed,

  1. The issue occurs when the device is connected to a Microsoft account and the password policy is applied.
  2. The password policy failure issue could also occur if the local account present on the device is converted from a Microsoft account.


To resolve this issue, ensure the device is not associated with any Microsoft account or local account converted from a Microsoft account. Remove all such accounts before applying the password policy.

  • Troubleshooting Guides