Skip to main content
Jamf Nation, hosted by Jamf, is a knowledgeable community of Apple-focused admins and Jamf users. Join us in person at the ninth annual Jamf Nation User Conference (JNUC) this November for three days of learning, laughter and IT love.

Removing Pulse Secure and Junos Pulse VPN Silently

We were using Pulse Secure (and its older version, Junos Pulse) VPN software in our environment but have since upgraded. In looking for a way to remove the old clients we ran across their uninstallers. Running those prompted the users to save the old settings and notified them when the uninstall was complete... We didn't want this! Found a way to make it silent!

If you dig into the uninstaller app, you can see that it's just calling a simple shell script that allows for arguments for ignoring all prompts and not saving the old config.

I'm posting those one liner scripts here for anyone else who might be looking to do the same!

Pulse Secure:

!/bin/sh

sudo sh /Library/Application\ Support/Pulse\ Secure/Pulse/Uninstall.app/Contents/resources/uninstall.sh 0

Junos Pulse:

!/bin/sh

sudo /library/Application\ Support/Juniper\ Networks/Junos\ Pulse/uninstall.app/contents/resources/Uninstall.sh 0

Now just build the Jamf policy to call these scripts and update maintenance. Set it to recurring check in and point it at your smart groups for those applications and you're golden!

Like Comment
SOLVED Posted: by chris.hansen

Thanks!
We're switching to GlobalProtect and I have to get rid of PS.

Minor tweaks, if sending this from Jamf, it'll run as root already, and you don't need the sudo in that case.
And since you're declaring sh in your shebang line, you can drop the sh.
I staged it like this.

#!/bin/sh
/Library/Application\ Support/Pulse\ Secure/Pulse/Uninstall.app/Contents/resources/uninstall.sh 0
Like

Jamf wants to hear your feedback around Peripherals and Jamf Connect settings configuration