HexCon is coming to NYC. Catch the early-bird price before the time's up! Book me a spot

Remove VPN icon from menu bar Solved

Participant
Discussion
2 years ago

We have implemented some network restrictions on our mac devices so the users will not fiddle with those settings and mess it up. So we want to remotely turn on the VPN whenever its required. The VPN icon on the menu bar gives them access to the VPN networks. So is there a way to remove that icon from there.

Replies (3)

Marked SolutionPending Review
Hexnode Expert
2 years ago
Marked SolutionPending Review

Hey @abel,
Welcome to the Hexnode community.

You can disable the VPN icon from the menu bar on macOS devices by executing a custom script through Hexnode UEM. A Bash script to remove the VPN icon from the menu bar is provided below.

The above script is adapted from a third-party Open-Source site. Hexnode will not be responsible for any damage/loss to the system on the behavior of the script. As a safety measure, manually validate the script execution on a system before executing the action in bulk.

Hope this helps with your query.
Cheers!
Johan Blake
Hexnode UEM

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

These all options work. But im looking for something that is similar to a script or configuration file. We have around 71 devices, so unchecking the option independently on each device is out of the question. These are already deployed devices.

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

There is an option under VPN profile in the network tab. Uncheck this option to remove the disable the icon. And as a shortcut you can just click and drag the icon out while pressing on the cmd button.