Jamf find Monterey Compatible Macs with regex

William Smith (talkingmoose) posted some helpful logic to search for Monterey Compatible Macs with regex in Jamf Pro http://talkingmoose.net/ | https://github.com/talkingmoose 1. Set of regex (^Mac13|MacBook(10|9)|MacBookAir(10|[7-9])|Macmini[7-9]|MacPro[6-7]|iMacPro1|iMac(1[6-9]|2[0-2])),\d|MacBookPro1(1,[45]|[2-8],\d) 2. Set of regex…

Stream Editor: sed

NAME sed -- stream editor sed Useful Commands Change the string something to else sed 's/something/else/' [file] Change the string something to else and add backup file: Will output two…

lpadmin

Add a network printer with command line lpadmin -p Test_Printer_Name -L "Printer Location" -E -v lpd://10.1.20.26 -P "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks /PrintCore.framework/Versions/A/Resources/Generic.ppd" Remove Printer from command line /usr/sbin/lpadmin -x printernamehere

Reset macOS Catalina Printing System

macOS Catalina introduced a new option in their printtool command line tool to reset the printing system. Type the following in Terminal: /System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Versions/A/printtool --reset -f Link: https://babodee.wordpress.com/2019/11/17/reset-the-macos-printing-system-through-the-command-line/