Block unauthorized applications on Mac by executing custom scripts
Description
An embargo on selective applications is quite common in enterprises. The usage of such applications poses a threat to productivity and security, therefore arises the need for restriction.
Endpoint Central offers several configurations to help you safeguard the Mac machines in your network. This document provides you with steps on preventing the usage of prohibited applications by executing custom script configuration.
Prerequisites
- Download dcblockexe executable.
- Prepare a list of all the applications that you want to block and save this text file under the name dcblockexe.txt.
- To add/remove applications from the list, follow the steps given below :
- Modify the text file, dcblockexe.txt accordingly.
- Click Configurations tab and under Action column, choose to modify the corresponding configuration.
- Upload the modified text file as a dependency file.
Steps
- Navigate to Configurations > Script Repository.
- Under Templates, add BlockAppsForMac.sh script to the repository.
- Navigate to Configurations > Mac > Custom Script.
- Ensure that the additional files are added as dependency files.
- If you want the usage of prohibited applications to be blocked round the clock, the frequency should be set as 'During Every Startup' while deploying the configuration. While executing this as a startup script, the applications will be blocked from subsequent startup.
![Block unauthorized applications](https://www.manageengine.com/in/products/desktop-central/help/images/mac-app-restrictions.jpg)
Note :
- Application name can be filled using any one of the below suggested convention: -
- Application name : Provide the file name devoid of its extension.
- bundleIdentifier : By providing bundle identifier, you can block an application even when the file name is renamed. Bundle ID uniquely identifies an application in mac machines. Duplication of applications can be overlooked as no two applications can have the same bundle ID. To acquire an application's bundle ID, right click on the application --> Show Package Contents --> Contents --> info.plist --> copy the key value mapped to CFBundleIdentifier.
- The application names are case-sensitive and multiple entries should be comma separated values.