macOSLAPS
macOSLAPS copied to clipboard
macOSLAPS 3.0.2.776 on macOS 12.6.1 - Could not cast value of type 'NSTaggedPointerString' to 'NSNumber'
I was getting errors running 'macosLAPS version' and 'macosLAPS resetPassword'
/usr/local/laps/macosLAPS resetPassword
Info|2022-12-16 19:06:15|macosLAPS|Using Preferred Domain Controller <AD DC>...
Warning|2022-12-16 19:06:15|macosLAPS|There has never been a random password generated for this device. Setting a default expiration date of 01/01/2001 in Active Directory to force a password change...
Info|2022-12-16 19:06:15|macosLAPS|Password Change is required as the LAPS password for
Tried setting DaysTillExpiration using '-int'
defaults write /Library/Preferences/edu.psu.macoslaps.plist DaysTillExpiration -int 30
as suggested in #5 but had the same behavior. Then tried setting PasswordLength also using '-int'
defaults write /Library/Preferences/edu.psu.macoslaps.plist PasswordLength -int 14
after which it worked
/usr/local/laps/macosLAPS -resetPassword
Info|2022-12-16 19:15:39|macosLAPS|Using Preferred Domain Controller <AD DC>...
Info|2022-12-16 19:15:39|macosLAPS|Password Change is required as the LAPS password for
Hi there,
So you would need to specify the following keys in a config profile or the preferences file to ensure that the password change can happen:
LocalAdminAccountFirstPass- especially now with secureTokenMethod- If you don't have AD and want to send to somewhere else.
Let me know if this helps!
Hello there,
Wanted to reach out and see if you had any updates on your particular issue and if you were able to get macOSLAPS working.
Thanks!
Hi Joshua,
we are actually having this issue and to be honest, I really do not know what else can we do as I trust we have have proper configuration.


Could you give the 4.0.0 Pre-Release a try and let me know if your issue is resolved?