Summary
Desktop Central agents can be installed uisng Windows Start up script, instead of installing them manually on the computers. If your customers have a Windows Domain based network setup, you can use install the Desktop Central agents using Start up script.
Points to Note:
- The Agent binary is different for every customer or even for different offices of the same customer.
- You should download the appropriate agent of the customer from the Customers page and use it here.
- Depending upon the network setup, you can either choose to install the agent to the entire domain or OU
Description
Run the script in a single computer
- Download the appropriate DesktopCentralAgent.msi by clicking the "Download Agent" link in the Customers page of the Desktop Central MSP User Interface.
- Download the script InstallAgent.txt
- Rename it to InstallAgent.vbs
- Run the script in each of the client computers from the command prompt: CSCRIPT InstallAgent.vbs DesktopCentralAgent.msi
Run the script in multiple computers using Start Up Script of Active Directory
If you have an Active Directory setup, you can add this as a startup script in all the client computers as below:
Note: If you have already installed the Desktop Central agents in few of the computers, you can still map the script to the whole domain/OU. The script has the intelligence to install the agent only to the computers where the agent is not installed and will skip the rest.
- Create a network share (eg. \\MyServer\MyShare).
- Download the appropriate DesktopCentralAgent.msi by clicking the Download Agent link in the Customers page of the Desktop Central MSP client. Save the msi in the network share created in step 1.
- Start -> Run -> gpmc.msc
- Right-click the domain and select "Create and Link a GPO here".
- Specify a name for the GPO
- Select the GPO from the tree.
- Select the Scope tab.
- Click the Add button in the Security Filtering to specify the computers.
- Click the Object Types button in the "Select User, Computer, or Group" dialog and select Computers object type and click OK.
- Specify the computer names and click Check Names to add the required computers.
- Click OK to close the "Select User, Computer, or Group dialog".
- Right-click the GPO and select Edit.
- Expand Computer Configuration --> Windows Settings --> Scripts.
- Right-click Startup and select properties.
- Click Show Files and drag and drop the InstallAgent.vbs to this location and close.
- In the Startup Properties dialog, click Add.
- Browse to select the InstallAgent.vbs script.
- Specify the Script Parameters as, for example, \\MyServer\MyShare\DesktopCentralAgent.msi. This refers to the shared location where you have stored the Desktop Central Agent.
- Click OK to close the Add a Script dialog
- Click OK to close the Startup Properties dialog
- Close the Group Policy Object Editor
- Close the Group Policy Management dialog.
The script will get executed during the next reboot of the client computers. After the execution of the scirpt, the Desktop Central Agents gets automatically installed in all the client computers.
Note: For the script to execute successfully, the file association of .vbs files should be set to "Microsoft Windows (r) Based Script Host" in all the client computers. If this has been modified to some text editor, the scripts will not execute.
Applies to: Agent Installation Failure, Desktop Central Agent Installation
Keywords: Agent Installation, Desktop Central Agent Installation Failure, Installation Failure, Access Denied