I have the situation, where I do not want the users to set their own

I have created a password policy, in which I removed the checkmark in "Allow
user to initiate password change"

In the driver I have set the "Always accept password; ignore Password
Policies" to enabled

When the driver now tries to set the generated password I get the following
message :

Unable to set SPM password, failed, bad password (-222)

When I set "Allow user to initiate password change" to true, the driver is
able to set the password.

Is this working as designed, or am I doing something wrong ?