ManageEngine
Deploy and manage Safety Endpoint on Windows devices using ManageEngine Endpoint Central Custom Script Configurations
This guide covers deploying Safety Endpoint to Windows devices using Custom Script Configurations in ManageEngine Endpoint Central (formerly Desktop Central). The deployment uses the same signed script used across all supported platforms — it installs, updates, and verifies Safety Endpoint on a recurring schedule.
Endpoint Central required. ManageEngine Mobile Device Manager Plus (MDM Plus) does not support custom script execution. This guide requires Endpoint Central, which is available as both a cloud and on-premises deployment.
Overview
Safety Endpoint is deployed as an Endpoint Central Computer Configuration using the Custom Script feature. The script downloads the official setup script, verifies its Authenticode signature, and executes it. Since the setup script is idempotent, it handles installation, updates, and health checks internally.
The configuration is set to run on every Refresh Cycle (approximately every 90 minutes), ensuring devices stay up to date without manual intervention.
The script reports status through its exit code:
0
Safety Endpoint is installed and up to date
1
Setup failed — requires manual review
Prerequisites
Deploy Safety Endpoint
Get Your Enrollment Key
Log in to the Safety Platform, click Manage Enrollment Key → Create Enrollment Key, and copy the generated key. This key links devices to your Safety organization.
Create the Custom Script Configuration
In the Endpoint Central console, go to Configurations → Add Configurations → Windows Configuration → Custom Script → Computer Configuration
Enter the configuration details:
Name:
Safety Endpoint - SetupDescription: Installs and maintains Safety Endpoint via signed setup script
Under Script Execution:
Select Command Line
Paste the full script content, or select Repository if you have already added the script to the Script Repository
Set Exit Code to
0(success indicator)Set Deploy Schedule:
Frequency: Every Refresh Cycle
Set Execution Context:
Run as: System user
Monitor Compliance
After deployment, monitor your fleet status in Endpoint Central:
Go to Configurations → Deployed Configurations
Find the Safety Endpoint - Setup configuration
Click to view the deployment status summary
Success
Safety Endpoint is installed and current
None
Failed
The script exited with a non-zero code
Click the device entry to view error details
Yet to Apply
Agent has not picked up the configuration
Wait for the next refresh cycle
In Progress
Script is currently running
Wait for completion
To retry a failed deployment on a specific device, select the device and click Retry.
Uninstall Safety Endpoint
If you need to remove Safety Endpoint from devices, create a separate Custom Script Configuration with the uninstall wrapper script. Like the deployment script, it downloads the official uninstall script from Safety, verifies its Authenticode signature, and executes it.
The uninstall script removes Safety Endpoint artifacts from the machine, including configuration, firewall wrappers, package manager settings, and data for all user profiles. Configuration Safety wrote into a project file stays with the project, including the index line in a requirements file, the Safety index entry in a pyproject.toml, and the registry in a project .npmrc. Remove those with the project's own tooling, for example poetry source remove safety.
Create the Uninstall Configuration
Go to Configurations → Add Configurations → Windows Configuration → Custom Script → Computer Configuration
Enter the configuration details:
Name:
Safety Endpoint - UninstallDescription: Removes all Safety Endpoint artifacts from the device
Under Script Execution, select Command Line and paste the following:
Set Exit Code to
0Set Deploy Schedule:
Frequency: Once
Set Run as: System user
Deploy the Uninstall
Under Define the targets, select the computers to uninstall from
Click Deploy
The script runs once per device. It requires SYSTEM privileges and will clean up:
Safety Endpoint binaries and system PATH entries
Per-user configuration, firewall wrappers, and shell profiles
Package manager configurations (pip, uv, npm)
Scheduled tasks created by Safety Endpoint
Troubleshooting
Last updated
Was this helpful?

