pwpolicy

Find when the user’s password was last changed #!/bin/bash # Get last password change echo; echo Password Last Changed:; u=$(dscl . list /Users | egrep -v '^_|daemon|nobody'); for i in…

How to check XProtect and MRT versions running Big Sur?

Gatekeeper /usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" /private/var/db/gkopaque.bundle/Contents/Info.plist XProtect defaults read /Library/Apple/System/Library/CoreServices/XProtect.bundle/Contents/Info.plist CFBundleShortVersionString Check XProtect Version on MacOS Catalina (10.15.x) & MacOS Mojave (10.14.x) and later: system_profiler SPInstallHistoryDataType | grep -A 5…