Hello,
I am trying to install a newer version of what was Junos Pulse now its Pulse Secure without a reboot.
When Updating to the newer version via Casper over the old version when it reboots it automatically picks up the Connections preferences fine. The issue is when Installed and you don't reboot the connections preferences disapears nothing is deleted. So if I locally use these commands in the Terminal
This is to Quit Junos Pulse
#!/bin/sh
{
launchctl unload -w /Library/LaunchAgents/net.juniper.pulsetray.plist
sudo launchctl unload -w /Library/LaunchDaemons/net.juniper.AccessService.plist
osascript -e 'tell application "Junos Pulse" to quit'
}
This is to Start it back up after Install:
#!/bin/sh
{
sudo launchctl load -w /Library/LaunchDaemons/net.juniper.AccessService.plist
launchctl load -w /Library/LaunchAgents/net.juniper.pulsetray.plist
}
it works but if I put this into a policy the Line "launchctl unload -w /Library/LaunchAgents/net.juniper.pulsetray.plist" i get this for an error from the Policy:
Executing Policy Test FOR VPN Client...
Running script Quit Junos VPN Client...
Script exit code: 0
Script result: /Library/LaunchAgents/net.juniper.pulsetray.plist: Could not find specified service
I haven't tried the Startup script in a Policy but it works fine directly on a machine. I am running OS X 10.10.5 most of the Mac's are Yosemite, then we have a few stragglers of 10.9.5 as well as El Cap Machines. We are Running Casper 9.81.
I know that the commands have changed from Mavericks and older OS's to Yosemite and Higher, so I am looking for insight to what I might be doing wrong.
Thanks in advance.
