Accounts are created in a disabled state

When provisioning a new user account, it creates the account in a disabled state because the password can not be set.

ERROR - The password could not be set, please make sure that you are on the domain. Reason: Exception has been thrown by the target of an invocation.

Any ideas on why this is happening?

This normally happens because the password that you are setting doesn’t meet the complexity reqioruemtns set in you security password policy.

This issue occurs due to the ‘Password must meet complexity requirements’ policy setting defined by Windows. The policy setting is enabled by default, and this causes the error if the defined password does not meet the minimum complexity requirements.

To resolve this issue, use one of the following solutions:

  • Adhere to the password complexity requirements
  • Disable the password complexity requirements policy setting