This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| testFile="$1" | |
| if [[ "$testFile" != *'.app' ]] && [[ "$testFile" != *'.kext' ]] ; then | |
| theCommand='display dialog "This item does not appear to be an application or kernel extension." with title "Verify Notarization" buttons {"OK"} default button {"OK"}' | |
| else | |
| testBinary=$( /usr/bin/stapler validate "$testFile" | /usr/bin/grep '64-bit' ) | |
| # per the man page, stapler returns 0 on successful stapling or validation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Model information: https://support.apple.com/en-us/HT210222 | |
| Published Date: February 01, 2021 | |
| Validation: https://regex101.com/r/p5r9WT/3/ | |
| This regex is exact. No new models are supported. | |
| (MacBookAir[5-9]|MacBookPro(9|1[0-6])|MacPro[6-7]|iMac(Pro1|1[3-9]|20)|MacBook(10|9|8)|Macmini[6-8]),\d | |
| pattern matches: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| <<ABOUT_THIS_SCRIPT | |
| ----------------------------------------------------------------------- | |
| Written by:William Smith | |
| Professional Services Engineer | |
| Jamf | |
| [email protected] | |
| https://gist.github.com/talkingmoose/9faf50deaaefafa9a147e48ba39bb4b0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # create user list of all users with UIDs above 500 | |
| userList=$( /usr/bin/dscl /Local/Default list /Users uid | /usr/bin/awk '$2 >= 500 { print $1 }' ) | |
| # for each user... | |
| for aUser in $userList | |
| do | |
| # check membership of user in admin group | |
| if [[ $( /usr/bin/dsmemberutil checkmembership -U $aUser -G admin | /usr/bin/grep "is not a member of the group" ) ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
| # | |
| # Written by: William Smith | |
| # Professional Services Engineer | |
| # Jamf | |
| # [email protected] | |
| # | |
| # Originally posted: September 13, 2019 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
| # | |
| # Written by: William Smith | |
| # Professional Services Engineer | |
| # Jamf | |
| # [email protected] | |
| # | |
| # Originally posted: September 13, 2019 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>askForPassword</key> | |
| <true/> | |
| <key>askForPasswordDelay</key> | |
| <integer>60</integer> | |
| <key>idleTime</key> | |
| <integer>840</integer> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ^(MacBookAir[5-8]|MacBookPro[19][0-5]?|1[3-9]|MacPro1|MacPro[56]|MacBook[189][0]?|Macmini[6-8]|iMac1[3-8]|iMacPro.*),.* | |
| or | |
| i?Mac(BookAir[5-8]|BookPro[19][0-5]?|1[3-9]|Pro1|Pro[56]|Book[189][0]?|mini[6-8]),.* | |
| pattern matches: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version list for testing: | |
| 17.0.0 | |
| 16.99.1 | |
| 16.90 | |
| 16.22 | |
| 16.16.11 | |
| 16.16.10 | |
| 16.16.7 | |
| 16.21.1 |