How to Uninstall NoMAD

Here is a simple script to uninstall NoMAD: # /bin/bash # Rui Qiu # Remove NoMad and use direct AD Bind loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk ‘{ print $3 }’` pkill “NoMAD” sudo rm -rf /Applications/NoMAD.app sudo rm -rf “/Library/Managed Preferences/com.trusourcelabs.NoMAD.plist” sudo rm -rf “/Library/Managed Preferences/$loggedInUser/com.trusourcelabs.NoMAD.plist” sudo rm -rf “/Users/$loggedInUser/Library/LaunchAgents/com.trusourcelabs.NoMAD.plist”   And you can use […]

Shell Script to Remove Centrify, Move Wifi/LAN, and Request 802.1 Certificate

Here is a long script of doing a lot of things,Ā  itĀ deletes the Centrify Binding, Centrify certificates and itself, binds the machine to AD via native plugin and requests a 802.1x certificate via native RPC   #!/bin/sh # This script deletes the Centrify Binding, Centrify certificates and itself, binds the machine to AD via native […]

Casper Configuration Profiles Auto Renewal

If you are using AD certificates inside a configuration profile, here is the easiest way to make it auto renewal: sudo defaults write /Library/Preferences/com.apple.mdmclient AutoRenewCertificatesEnabled -bool YES I have setup an extension attribute to check the Macs need this remediation: #! /bin/bash status=$(sudo defaults read /Library/Preferences/com.apple.mdmclient AutoRenewCertificatesEnabled) echo “<result>$status</result>”   Any Macs without the result […]

How to use NetSUS to Netboot a VM

Check theĀ  ā€œModel Identifierā€Ā from your already installed Mac VM, usually it isĀ  VMware7,1. Add this into your NBImageInfo.plist of your boot image: <key>EnabledSystemIdentifiers</key> <array> Ā  Ā  <string>VMware7,1</string> </array> <key>ImageType</key>   How To NetBoot A VMWare Fusion & ESXi Hosted VM  

Casper Debug Log Location

Here is the full listing of enabling DEBUG Modes: Enabling and Generating a Debug Log for Admin, Imaging & RemoteĀ  1)Ā Create Debug Folder in Casper Application Directory: /Path/to/CasperApplication/Contents/Support/debugĀ Ā Ā  (Note: right-click on Casper Application > Show Contents > Go Into Support Folder > Create ‘debug’ folder) (Example:Ā Ā /Applications/Casper Imaging.app/Contents/Support/debug).Ā Keep ‘debug’ lower case. *Alternatively, You may create a […]

Casper MalwareBytes Package

Here are my two scripts for install and scan with MalwareBytes on Casper. First one is to download, install and register MBBR: #/bin/sh # MBBR Scanner # Ray Qiu # Feb 2, 2017 # Download Installer cd /tmp curl -LOk http://xxx.com/tools/mbbr-mac.zip sudo unzip -o mbbr-mac.zip # Install sudo installer -pkg “/tmp/mbbr-mac.pkg” -target / # Registeration […]

Casper MDM Enrollment Issue

we have a few macs that cannot enroll MDM, when I check the jamf log from the mac, it said Error installing the computer level mdm profile: profiles install for file:’/Library/Application Support/JAMF/tmp/mdm.mobileconfig’ and user:’root’ returned -915 (Unable to contact the SCEP server at “https://jss.xxxcom:8443//CA/SCEP”.) Problem installing MDM profile. Problem detecting MDM profile after installation. It […]