View all Worklets
macOS

Disable Remote Management

Disables Remote Management on targeted endpoints.

Worklet Details

Introduction to the Bash-Based Disable Remote Management Worklet

The Disable Remote Management Worklet is a highly effective tool for Mac users who need to control and restrict remote access capabilities on their devices. This Worklet, designed for MacOS systems, allows administrators and users to easily disable the remote management feature through a simple yet comprehensive Bash script.

By leveraging this Worklet, organizations can ensure that their devices are more secure and less vulnerable to unauthorized access or misuse from external sources.

Why would you use the Disable Remote Management Worklet?

Remote management is an essential feature in mobile device management; however, it may also pose a security risk if not adequately secured or managed. Enabling remote management can provide convenient access to system preferences and other settings, but it also exposes the device to potential threats if unauthorized users gain access.

In situations where there is no requirement for remote administration or it's preferred that devices be managed locally, using the Disable Remote Management Worklet helps mitigate these risks by ensuring that remote desktop capabilities are deactivated.

Components of the Disable Remote Management Worklet

This particular Worklet consists of two Bash scripts - an evaluation script and a remediation script. The evaluation script assesses whether remote management is enabled on a target device and determines if any action needs to be taken.

If necessary, the remediation script proceeds with disabling remote management by executing specific commands via command line.

How does the Disable Remote Management Worklet work?

To begin with, the evaluation script checks if Apple's ARDAgent (Apple Remote Desktop Agent) process is running on the target device. This process is responsible for managing all aspects of Apple's remote desktop service. If it detects that ARDAgent is currently active (i.e., remote management enabled), then it will trigger remediation.

On execution of the remediation script, it deactivates ARDAgent using Apple's built-in "kickstart" command-line utility located in the /System/Library/CoreServices/RemoteManagement/ARDAgent.app directory. This ensures that remote access is no longer possible, and the local device management remains intact.

What is the expected outcome when you use the Disable Remote Management Worklet?

When you deploy this Worklet on a target Mac device, it will assess whether remote management is enabled and proceed accordingly. If it detects that the feature is active, it will automatically disable remote management by deactivating ARDAgent. In cases where remote management was already disabled, no further action would be taken.

However, this Worklet does not remove the Remote Management checkbox from System Preferences; rather, it only disables its functionality. Using the Disable Remote Management Worklet helps to ensure that your MacOS devices are secure and protected against unauthorized remote access.

View in app

Consider Worklets your easy button

What's a Worklet?

A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.

do more with worklets