Posted on 03-25-2022 11:10 AM
I have a laptop that my service desk was trying to deploy. I'm getting a window popping up saying that the copy of Nomad is unlicensed and that I should contact sales@nomad.menu for support. I'm pretty sure we don't need to use Nomad anymore.
Questions.
1. How to verify Nomad licensing
2. How to uninstall Nomad from 1 specific machine
3. How to remove Nomad from use in the environment safely and without disruption to my users.
03-28-2022 09:20 AM - edited 03-29-2022 04:01 PM
Pasted below will remove NoMAD. I don't know what you are referring too with License Window. Can you share a screenshot?
#!/bin/bash
## Get the current user
loggedInUser=$([[ $3 ]] && echo "$3" || defaults read /Library/Preferences/com.apple.loginwindow lastUserName)
/usr/local/bin/authchanger -reset
# unload LaunchAgent
launchctl unload /Library/LaunchAgents/com.trusourcelabs.NoMAD.plist
launchctl unload "/Users/$loggedInUser/Library/LaunchAgents/com.trusourcelabs.NoMAD.plist"
# Kill NoMAD process
pkill NoMAD
#Remove Files
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"
sudo rm -rf "/Library/LaunchAgents/com.trusourcelabs.NoMAD.plist"
Posted on 03-29-2022 10:50 AM
Thanks for the script! How do I run this on the computer that needs fixing? is there a way to push this to the computer through Jamf?
Posted on 03-29-2022 11:38 AM
here's the screenshot i'm seeing. If its not obvious, the Jamf environment here is NOT functioning well
Posted on 03-29-2022 01:02 PM
ahhh NoMad Pro! (Its been a while since I've dove into NoMad Pro)
For the script, just copy & paste what I shared into Jamf Pro Dashboard -> Management Settings -> Scripts - save script & create a policy, add that script to the policy payload, scope it to the designated machine with a recurring checkin trigger & that should wack it.
Posted on 03-29-2022 02:17 PM
No joy yet! The dashboard says 100% but the computer is still showing the window. do I need to reboot?
Posted on 03-29-2022 04:02 PM
give the restart a shot, might need to include something to kill nomad process to the script
Posted on 03-30-2022 03:54 PM
something more than the pkill that was included?
Posted on 03-31-2022 06:33 AM
#!/bin/bash
## Get the current user
loggedInUser=$([[ $3 ]] && echo "$3" || defaults read /Library/Preferences/com.apple.loginwindow lastUserName)
/usr/local/bin/authchanger -reset
# unload LaunchAgent
launchctl unload /Library/LaunchAgents/com.trusourcelabs.NoMAD.plist
launchctl unload "/Users/$loggedInUser/Library/LaunchAgents/com.trusourcelabs.NoMAD.plist"
# Kill NoMAD process
if pgrep -i NoMAD &>/dev/null; then
sudo kill "$(pgrep -i NoMAD)"
terminated
printf "NoMAD process\n"
else
not_found
printf "NoMAD process\n"
fi
#Remove Files
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"
sudo rm -rf "/Library/LaunchAgents/com.trusourcelabs.NoMAD.plist"
I moved the authchanger reset to the top & changed the kill function but this should really be doing it