MacOS: Remove password requirement policies originally applied by MDM's
Occasionally, a system no longer managed by an MDM will leave garbage behind. One of those 'things' is password policies. You can use a tool in terminal to get rid of the password policy.
sudo pwpolicy -clearaccountpolicies
* If you use above on a still managed system, the above solution will only be temporary. I recommend following your MDM providers policies as they are in place to protect you and your company. Regardless of how annoying they might be be.
If you want to keep just some things related to the policy, you create your own using the referenced script below: