# Mac Agent Installation in Remote Offices - How To ## How to install Mac agents in remote office computers that communicate through Distribution Server? ### Description Endpoint Central helps you in managing your [local network](https://www.manageengine.com/products/desktop-central/desktop-central-lan-architecture.html), [remote office](https://www.manageengine.com/products/desktop-central/desktop-central-wan-architecture.html) and [roaming users](https://www.manageengine.com/products/desktop-central/help/configuring_desktop_central/managing_computers_of_roaming_users.html) seamlessly. Remote office computers can contact the product server either [directly or through distribution server](https://www.manageengine.com/products/desktop-central/help/configuring_desktop_central/managing_computers_wan.html). Agent-server communication that happens through distribution server helps in the optimization of bandwidth. This document provides steps for installation of Mac agents in computers that communicate through distribution server. ### Steps 1. Click the **Agent** tab. 2. Under **Scope of Management**, navigate to **Computers** and click **Download Agent**. 3. Select the name of the remote office in which you want to install an agent. Choose the platform as Mac and click **Download Agent**. 4. Make sure **sshpass** is installed in the Mac remote office system from which the script will be executed. 5. Ensure that **Remote Login** has been enabled in all the managed Mac computers and should be reachable by their machine name. 6. Execute the [script](https://workdrive.zohoexternal.com/external/706407dcfe046a9ae2ed51a4ace37b11c5ce335823cd7175b5fc32ac55f4097a/download?directDownload=true) and specify the **username** and **password** using which the installation will be carried out. The credentials provided should have sudo permissions. 7. Prepare a list of computers in which the agent needs to be installed. The **computer names or IP addresses** should be furnished as new line entries and the list should be saved as a text file (.txt). 8. Give **executable permission** to the script file in terminal as root/sudo user: ``` chmod +x RemoteAgentInstallerforMac.sh ``` 9. Run the script as: ``` ./Name_of_the_script Name_of_the_text_file ``` For example: ``` ./RemoteAgentInstallerforMac.sh computers.txt ``` You have successfully installed Mac agents in remote office computers that communicate using Distribution Server.