Nomad license window

binjali
Contributor

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.

8 REPLIES 8

Hugonaut
Valued Contributor II

@binjali 

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"

________________
Looking for a Jamf Managed Service Provider? Look no further than Rocketman
________________


Virtual MacAdmins Monthly Meetup - First Friday, Every Month

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?

IMAGE 2022-03-29 11_37_18.jpghere's the screenshot i'm seeing.  If its not obvious, the Jamf environment here is NOT functioning well

Hugonaut
Valued Contributor II

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.

________________
Looking for a Jamf Managed Service Provider? Look no further than Rocketman
________________


Virtual MacAdmins Monthly Meetup - First Friday, Every Month

No joy yet! The dashboard says 100% but the computer is still showing the window. do I need to reboot?

Hugonaut
Valued Contributor II

give the restart a shot, might need to include something to kill nomad process to the script

________________
Looking for a Jamf Managed Service Provider? Look no further than Rocketman
________________


Virtual MacAdmins Monthly Meetup - First Friday, Every Month

something more than the pkill that was included?

Hugonaut
Valued Contributor II
#!/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

________________
Looking for a Jamf Managed Service Provider? Look no further than Rocketman
________________


Virtual MacAdmins Monthly Meetup - First Friday, Every Month