Jamf Pro API

#!/bin/bash # Get safari status Safari=$(sudo curl -s "https://user:password@jamfserver.com:8443/JSSResource/computerapplications/application/*Safari.app*/inventory/Asset%20Tag%2CPlatform" -H "accept: application/json" | grep -e versions | sed 's/\,"unique_computers.*//' | awk '{print $0}' | tr -s '\n' ' ' |…

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…