Category filter
Script to enable Remote Management on Mac
Remote Management in Mac lets remote users manage the device with the help of Apple Remote Desktop. It permits those users who have predefined access to the device to manage the system, interact with users, configure preferences, deploy files, etc., with Remote Desktop. First, however, you should enable remote management from the System Preferences (System Preferences > Sharing > Remote Management) of a client macOS device to manage it. Hexnode makes this task simpler with the Execute Custom Script action, where you can enable remote management by executing customized scripts.
Scripts to activate and deactivate Remote Management
To activate Remote Management,
1 2 3 |
#!/bin/sh /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate |
To deactivate Remote Management,
1 2 3 |
#!/bin/sh sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate |
Kickstart
– allows you to install, uninstall, activate, configure, and restart components of the ARD agent app without restarting the computer.
ARDAgent.app
– is an icon-less, windowless app installed by default on a Mac that responds to Remote Desktop apps’ remote administration requests.
By default, Remote Management may be accessed by all users when enabled. To activate Remote Management for specified users, run the command:
1 2 3 |
#!/bin/sh sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -specifiedUsers |