Hey all,
I'm working on a way to put a policy in the JSS that forces a user to reset their password the next time they log out.
Previously the following script would've done the trick, however Apple has deprecated the -setpolicy command.pwpolicy -a adminuser -u usertoforcechange -setpolicy "newPasswordRequired=1"
I have had a look at the following script, but it doesn't feature a one time immediate password reset.
https://www.jamf.com/jamf-nation/discussions/18574/user-password-policies-on-non-ad-machines
Does anyone have any ideas of how to accomplish the same result of pwpolicy -a adminuser -u usertoforcechange -setpolicy "newPasswordRequired=1"
with the new plist based commands?
Thanks!