Agent Deployment
 

Agent-based scanning is supported for Windows, Linux, and Mac machines. Before proceeding with an agent-based scan, ME Endpoint Central (formerly Desktop Central) has to be installed.  Click here for more details. Below are the methods of agent deployment, uninstallation, and steps for creating image with Endpoint Central agents for each OS. 

 

The agent will get updated automatically by the application as soon as a new agent gets released.


Quick Links

Windows agent

 

Installing Windows agents using startup script in ActiveDirectory

Installing Windows agents through GPO lightweight tool

Installing Windows agents for workgroup machines.

Installing Windows agents manually

How to image a Windows computer with DC agent

Uninstalling Windows agents

 

Linux agent

 

Installing Linux agent using Linux agent installation tool

Installing Linux agent manually

How to image a Linux computer with DC agent

Uninstalling Linux agents

Supported Linux OS versions

 

Mac Agent

 

Installing Mac agents using Mac agent installation script

Installing Mac agent manually

How to image a Mac computer with DC agent

Uninstalling Mac agents

Supported Mac OS versions

 

 

Windows Agent

Follow the below methods for Windows agent deployment, uninstallation, and creating a Windows image with Endpoint Central agents.

Installing Windows agents using startup script in ActiveDirectory

Endpoint Central (formerly Desktop Central) Windows agents can be installed through startup scripts in ActiveDirectory so that the agents are deployed on the windows machine during a reboot. Below are the steps for deploying the agents as a startup script.
 

Note: Ensure that the network has a domain-based setup and not a workgroup setup. You can map the script to the entire domain even if you have installed Desktop Central agents on a few client computers as the script will install the agent only on the computers in which the agent is not installed.

 

  1. Download the Windows agent (Zip file) from Admin tab --> Agent Configuration--> Download Windows Agent and extract it.

  2. Save the .msi & .mst file in this path \Domain nameSysVolDomain namePolicies{ID}MachineScriptsStartup

    Include DCAgentServerInfo.json file only if the Desktop Central build version is 10.1.2124.1 and above.

    How to obtain { ID } Value :-

  1. Click on start>Run

  2. Enter gpmc.msc

  3. Click OK

  4. Right click the domain to select, create and link a GPO here

  5. Specify a name for the GPO

  6. Select the GPO

Note: These steps need to be followed if you wish to install agents in a select few devices (refer this image). Do not follow these steps if you want to install agents in all the devices.

  1. Right click the GPO and click on Edit.

Note: As an alternative to the execution of VBscript, you can execute PowerShell script for agent installation using GPO.
  1. For executing VBScript, follow these steps (refer this image):

  1. Specify the script arguments as "UEMSAgent.msi UEMSAgent.mst DMRootCA.crt"

  1. Specify the script arguments as "UEMSAgent.msi UEMSAgent.mst DMRootCA.crt DMRootCA-Server.crt"

  2. For executing PowerShell script, follow these steps and refer this image):

  1. Specify the script arguments as "UEMSAgent.msi UEMSAgent.mst DMRootCA.crt"

  1. Specify the script arguments as "UEMSAgent.msi UEMSAgent.mstDMRootCA.crt DMRootCA-Server.crt"

  2. Click OK to close the Add a Script dialog box

  3. Click OK to close the Startup Properties dialog box

  4. Close the Group Policy Object Editor

  5. Close the Group Policy Management dialog box

Note: The script can be deployed to all the computers in the domain. It is to be noted that the target shouldn't be a user group.

The script will be executed when the client computers reboot after the script is deployed to the domain. After the execution of the script, Endpoint Central agents will be installed automatically in all the client computers.
 

Notes
Set the file association properties of .vbs files to Microsoft Windows (r) based script host in all the client computers. This ensures that the script is executed successfully. Do not modify the file association properties to open in a text editor as the execution of the script will fail.
You can leave the Endpoint Central GPO object installed indefinitely to ensure that the agent is installed in future client computers.
This will not re-install the agent that is already installed as the script is programmed to ensure that it doesn't re-install agents that are already installed. This will not cause any problems during startup.
You also do not need to update and download the UEMSAgent.msi file every time Endpoint Central releases a new version. The agent is programmed to check for new versions from the server and upgrade itself automatically. When an agent is installed, it updates itself automatically when new versions are released.

 

Installing Windows agents through GPO lightweight tool

Endpoint Central agent can be installed using the GPO light-weight tool. Follow the steps given below to create a Group policy and link it with OUs and Domains.

Steps:

  1. Download the Windows agent (Zip file) from Admin tab --> Agent Configuration--> Download Windows Agent and extract it.

  2. Save the .msi and .mst in a folder location.

(or)

  1. Run Windows PowerShell in administrative mode and navigate to that script (GPO_Tool.ps1) location, then execute the script with arguments as mentioned below.

For vb script configuration: .GPO_Tool.ps1 UEMSAgent.msi UEMSAgent.mst InstallAgent.vbs

For PowerShell script configuration: .GPO_Tool.ps1 UEMSAgent.msi UEMSAgent.mst PSInstallAgent.ps1

  1. In the PowerShell window, enter the name of the GPO to be created and press Enter.

  2. After creating the GPO, enter the distinguished name of the OU or Domain to be linked with it. Follow the steps mentioned below to get the distinguished name:

 

6. Now paste the copied distinguished name into the PowerShell window and click Enter.

7. If you want to 'Add' another domain, press y and repeat step 5. Else, press n to end the process.

 

Installing Windows agent for workgroup machines

Windows agents for workgroup machines can be installed using IP addresses and IP ranges through a .exe file with support files to install agents using a command-line tool.

To install an agent using IP addresses and IP ranges, follow the steps given below:

 

To install agents on Mac computers, follow the steps given here.

To install agents on Linux computers, follow the steps given here.

Note: If the build version is 10.1.2124.1 and above, kindly include DCAgentServerInfo.json.
Note: This can be a local office or a remote office, depending on which computers you want to install agents in.

 

Then the agent will be installed remotely in the client machines.

Note: IP addresses of the client computers listed in ipaddress.txt should be mentioned in independent lines. The credentials to be provided for agent installation in client computers should have domain admin permissions.


To install agents using ipaddress.txt, enter the IP address or IP range of the computers on which you want to install the agent and save the file.

Installing Windows agents manually

To install the agent manually, follow the steps given below:

  1. Download the Windows agent from Admin tab --> Agent Configurations --> Download Windows Agent button

  2. Save the .zip file on the computer on which you want to install the agent

  3. Extract the contents of the zip file

  4. Open a command prompt with run as admin privilege and navigate to the location of the extracted zip folder and run the command setup.bat

  5. Select option 1 to install the agent on this computer

You have now successfully deployed the agent.

How to image a Windows computer with a Endpoint Central agent

Endpoint Central Agent has a unique ID that represents the machine with its name and system details. If more than one Endpoint Central Agent is identified with the same ID , the details listed in ServiceDesk Plus will be overwritten. This would end up listing details of only one computer though there are several computers with the same ID. So, in order to avoid this issue, follow the steps mentioned below to image a computer with Desktop Central Agent on it.

  1. Install Endpoint Central Agent on the computer, which is to be used for imaging.

  2. Download Agent by accessing the Assets module and selecting Download Windows Agent (or) go to Admin >> Agent Configuration >> Download Windows Agent.

  3. Save and Download this script and store it in the system that is supposed to be imaged.
    (running this script will block the Endpoint Central Agent from communicating with the Desktop Central Server)

  4. Rename the .txt file as .vbs file

  5. Open the command prompt as administrator and navigate to the folder where the above script is stored.

  6. Execute the script as: cscript.exe dcagentPreImage.vbs
    (example : E:Downloads>cscript.exe dcagentPreImage.vbs)

Now your computer is ready to be imaged with Endpoint Central Agent, for deployment.
Endpoint Central Agent on the newly imaged computers will contact the Desktop Central Server only if they are renamed.

Uninstalling Windows agents

You can uninstall the ManageEngine Endpoint Central Agent manually as well as by using PsExec Utility.

Manually Remove from Individual Computers

  1. Save and rename the script UnInstallAgent.txt as UnInstallAgent.vbs

  2. Run the script in all the client computers from the command prompt: cscript UnInstallAgent.vbs


Using PsExec Utility to Remove from Multiple Computers

You can uninstall the ManageEngine Endpoint Central Agent manually as well as by using PsExec Utility.

Manually Remove from Individual Computers

  1. Save and rename the script UnInstallAgent.txt as UnInstallAgent.vbs

  2. Run the script in all the client computers from the command prompt: cscript UnInstallAgent.vbs


Using PsExec Utility to Remove from Multiple Computers

You can use the PsExec utility to execute the agent uninstallation script on multiple computers.

  1. Create a network share (eg. \MyServerMyShare).

  2. Save and rename the script UnInstallAgent.txt as UnInstallAgent.vbs.

  3. Save the vb script in the network share created in step 1

  4. Download the PsExec utility from http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx and save it in, for example, C:

Run the script using the following command from the dos promptC:for /f %f in (c:computernames.txt) do psexec \%f -u <domain>administrator -p <password> CSCRIPT \MyServerMyShareUnInstallAgent.vbs where,
computernames.txt contains a list of computers from where the agent has to be uninstalled, which has to be specified with its complete path
<domain> refers to the domain or the workgroup admin user name
<password> refers to the domain or the workgroup administrator password

Linux agent

 The following section discusses Linux agent deployment, uninstallation, and steps for creating a Linux image with Endpoint Central agents.


Installing Linux agent using Linux agent installation tool

For the bulk installation of agents in Linux machines, it is necessary to use the Linux Agent Push Installation tool.


To install Linux agents in bulk:

 

  1. Go to Assets module and click on Download Linux Agent in the middle section Or go to Admin >> Agent Configuration >> Download Linux Agent.

  2. Download and extract the Linux Agent Push Installation tool.

  3. Extract the Agent file which you downloaded in step 1 and copy the Linux Agent binary and serverinfo.json to the Linux_Agent_Push_Installation folder.

  4. To install agents using computers.csv, enter the hostname and optionally the agent installation directory in the sample computers.csv that has been provided and save the file.*

  5. Execute LinuxAgentPushInstaller_32bit.exe. Choose the required option and follow the instructions given in the command window.

 

Installation Modes  

Mode 1 - Install agents on the computers listed in computers.csv using a common Username and Password

Mode 2 - Install agents on the computers listed in computers.csv using SSH Keys

Mode 3 -Install agents on the computers in an IP Range using a common Username and Password

Mode 4 - Install agents on the computers in an IP Range using SSH Keys

 

computers.csv format  

The hostname of the agent machine is required.

The agent installation directory is optional. When left empty, the agent will be installed in the default agent installation directory under /usr/local/.

Example:

hostname,agent_installation_dir
test-machine-1,
test-machine-2,/opt

Note
Even though the agent installation directory is optional, a comma (,) is needed after the hostname.
There should be an empty line at the end-of-file.

 

SSH Keys  

The following details apply to Modes 2 and 4.

SSH keys should be configured in the agent machines (i.e) the Public Key of the Windows machine from which Push Installation is to be done, should be present in the authorized_keys file in the agent machines.

By default, the Private Key present in the current User's home directory will be used. If a different key is to be used, the full path to the Private Key can be provided when it is prompted.

In case the Private Key is encrypted, the passphrase should be entered. If not, it can be left empty.

If the user is a sudo user, NOPASSWD option should be enabled for this user on sudoers. This is not necessary in the case of an installation using the root user.

 

IP Range  

The following details apply to Modes 3 and 4.

Only IPv4 is supported.

End IP is inclusive.

 

SSH Port  

By default, SSH port 22 will be used. To use a custom SSH port, provide it as an argument to the tool.

Example:

LinuxAgentPushInstaller_32bit.exe 8888

 

Installing Linux agent manually

Linux agents can be installed manually on the computers that need to be managed.  Agents should be downloaded to the Linux computer manually before initiating the installation process. For invoking the installation on client computers, the SSH port (default port 22) should be open on the computers where the agent needs to be installed.  SSH port is used only for agent installation purposes and not for agent-server communication. Follow the steps mentioned below.

  1. Go to the terminal as a root user. If you do not log in as a root user, open the terminal and use sudo command to perform each operation mentioned below and enter the password whenever prompted. This provides you with the root privilege.
  2. Navigate to the location where the agent is downloaded and Unzip the DCLinuxAgent.zip by using the command "unzip -e DCLinuxAgent.zip".
  3. Verify if,  "DesktopCentral_LinuxAgent.bin" & "serverinfo.json" are located in the same path

  4. Execute the Command, "chmod +x DesktopCentral_LinuxAgent.bin" as a root user. This prepares the executable for installation.

  5. Run the Installer using "./DesktopCentral_LinuxAgent.bin". Agent will be installed by default in "/usr/local/desktopcentralagent" directory.

  6. If you want to change the installation location of the agent, use this command "./DesktopCentral_LinuxAgent.bin -d <new_location>" .

You can see that the Desktop Central agent is successfully installed on the Linux computer.

 

How to image a Linux computer with a Endpoint Central agent

Endpoint Central has a unique ID that represents the machine with its name and system details. If more than one Endpoint Central Agent is identified with the same ID, the details listed in the ServiceDesk Plus  Console will be overwritten. This would end up listing details of only one computer though there are several computers with the same ID. To avoid this, follow the steps mentioned below to image a computer with Desktop Central Agent on it.


Steps to be performed on the computer which is to be used for imaging.

  1. Install Endpoint Central Agent on the computer.

  2. Download Agent by accessing the Assets module and selecting Download Linux Agent (or) go to Admin >> Agent Configuration >> Download Linux Agent.

  3. Ensure that you have superuser privileges to perform the actions below.

  4. Open the terminal and run this command "dcservice -p" to stop DC Agent Service.

  5. Download "LinuxOSImager" in the Machine.

  6. Navigate to the location where "LinuxOSimager" is stored, open the terminal and run this command "chmod +x LinuxOSImager". This prepares the file for execution.

  7. Run this command : "./LinuxOSImager set". Now the machine will be marked as imaged.

  8. Take the Image of the OS.

  9. Run the command : "./LinuxOSImager reset". This is needed for the machine to contact Desktop Central Server.

  10. Restart the DC Agent Service by running the command "dcservice -t &".


Steps to be performed on the computer where the image will be deployed.

 

Uninstalling Linux agents

To uninstall Linux agents from computers, follow  the steps mentioned below:

  1. Go to the terminal as a root user. If you do not log in as a root user, open the terminal and use sudo command to perform each operation mentioned below and enter the password whenever prompted. This provides you with the root privilege.
  2. Execute this command "./RemoveDCAgent.sh" to uninstall the agent.
  3. Navigate to the location where the agent is installed, (default Location : /usr/local/desktopcentralagent) execute this command to "chmod +x RemoveDCAgent.sh" to initiate the uninstaller. You need to have root privilege to uninstall the agent. If you do not remember the installation location, you can locate it here, Agent Installed Directory : "/etc/desktopcentralagent/dcagentsettings.json"

You can see that the Desktop Central agent has been uninstalled successfully from the computer.

 

Supported Linux OS versions

Endpoint Central currently supports the following Linux versions:

 

Mac agent

This section discusses the methods of Mac agent deployment, uninstallation, and steps for creating a Mac image with Endpoint Central agents.

 

Installing Mac agents using Mac agent installation script

For bulk installing Mac agent, it is necessary to use the script.  Scripts are used to install Mac agents through ssh on computers.

Follow the steps below to install Mac agents in bulk:

 

  1. Go to the Assets module and click on Download Mac Agent at the middle section or go to Admin >> Agent Configuration >> Download Mac Agent.

  2. Make sure sshpass is installed in the Mac system from which the script will be executed.

  3. Ensure that Remote Login has been enabled on all the managed Mac computers and should be reachable by their machine name.

  4. Execute the script and specify the username and password using which the installation will be carried out. The credentials provided should have sudo permission.

  5. Prepare a list of computers on 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).

 

Installing Mac agent manually

Follow the steps mentioned below   to install the Mac agents manually,

  1. Log in to the Mac computer as an administrator and navigate to the location where the agent is downloaded.
  2. Extract the zip file and  locate DesktopCentral_MacAgent.pkgand serverinfo.plist file.
  3. Double click to install the agent.
  4. Enter the administrator's password when prompted to complete installation.

How to image a Mac computer with an Endpoint Central agent

Steps to image a Mac system with Endpoint Central

  1. Save and Download the pre-installation script in the machine that is to be imaged and rename the .txt file as a .sh file.

  2. Execution of this script will block Agent-Server communication on a temporary basis.

  3. Open the terminal and navigate to the folder where the pre-installation script is stored.

  4. Execute the command sudo ./dcagentpreimage_Mac.sh and the machine is now ready to be imaged.

  5. Follow these steps for restoration of agent-server communication in the imaged computer :

 

Uninstalling Mac agents

To uninstall the agents from the computers, follow the steps mentioned below.

Supported Mac OS versions

Desktop Central currently supports the following Mac versions: