How to install Desktop Central Agent Using GPO Scheduler?

Desktop Central Agents can now be installed in an Active Directory environment using the scheduler option. When the installation process is initiated with the Scheduler, it is triggered in the time specified while configuring the same, unlike a normal GPO script where the installation happens when a device is turned on or when a user logs in.

Steps

Follow the steps given below to schedule Desktop Central agent installation task.

Creating/Provisioning Network Share:

  1. Log on to the Windows Server machine as an administrator.
  2. Open the Server Manager Console by selecting it from the Administrative Tools menu.
  3. From the Server Manager Dashboard, select File and Storage Services.
  4. Now, open the Shares tab, click on Tasks and select New Share.

  5. Desktop Central: Shares in GPO

  6. On clicking, a New Share Wizard opens up. In the wizard, click on Select Profile, select the option SMB Share - Quick, then click Next.
  7. On the Shared Location tab, enter the file path to the shared folder that is created for deploying the agent installer, then click Next.

  8. Desktop Central: Selecting Share Location in GPO

  9. On the Specify share name tab, enter a name for your share. Enter a share description, if needed.
  10. The wizard will now automatically create the local and remote file paths in the share.
  11. After this, click Next to configure the settings.
  12. On the Configure share settings wizard page, accept the default options in Other Settings (Allow caching of share) and Click Next.

  13. Desktop Central: Configuring other settings in GPO

  14. On the Specify permission to control access page, accept the default permissions and click Next.
  15. On the Confirm selections page, review your selections, then click Create.
  16. The new public share is now visible in the Shares pane.
  17. Now, right-click on the share and select Open Share.
  18. Download the agent installable from Desktop Central's console by navigating to Agent-->Agent Installation-->GPO-->Download Agent.
  19. Also, copy the text from this page and save it as installagentscript.vbs.
  20. Place DesktopCentralAgent.msi, DesktopCentralAgent.mst and installagentscript.vbs file in the share.
  21. Note: Be sure to capture and store the full network file path (not the local path), it is needed in the later steps.


    Desktop Central: Agent Installable Path

Create a GPO to identify targets for deployment

  1. Open the Group Policy Management Console (GPMC) by opening Run (Windows key + r) and typing gpmc.msc.
  2. Once in the GPMC, right-click on your target "organizational unit" (typically a domain), and select Create a GPO in this domain, and Link it here option.

  3. Desktop Central: Creating GPO for agent installation

  4. Enter a Name for the new GPO. For example, "Desktopcentral_agent_install."

    Note: By default, the GPO applies to all users and computers that successfully authenticate to the Active Directory domain that you selected.

  5. Once the new GPO is created, you can see it in the GPMC in the left navigation pane, under Group Policy Objects.
  6. Note: You can modify the scope of computers to which the agent is deployed and installed by changing the Security Filtering values for the new GPO.

Create a scheduled task to execute the deployment and installation of the Windows Agent

  1. Open the Group Policy Management Editor by right-clicking on the new GPO you created, and selecting Edit.
  2. In the editor navigation tree, under Computer Configuration, click Preferences > Control Panel Settings; then, right-click Scheduled Tasks.
  3. Now, click on New and select Immediate Task (At least Windows 7).

  4. Desktop Central: Creating new task in GPO for agent installation

  5. This opens the New Task dialog box. Enter a Name and a description (if needed).
  6. Under Security options, click the Change User or Group button.
  7. In the dialog box that appears, enter "system" in the text box, then click Check Names. Confirm that you have the correct values and click OK.
  8. Make sure that the system object resolves to the value "NT Authority\System," as shown in the Security Options group.
  9. Also ensure the following:
    • Ensure that Run whether user is logged on or not is selected.
    • Ensure that Run with highest privileges is selected.
    • Ensure that Configure for: is set to Windows Vista or Windows Server 2008.
  10. Click on the Actions tab and then click New.
  11. In the New Action dialog box, set the Action drop-down to Start a program. In the Program/script text box, enter the network file path to the shared folder that was created earlier. Then provide the arguments and Start in folder details and click OK.
  12. Desktop Central: Defining action for new task in gpo for agent installation

    Program/script:
    \\computer_name\DCAgentShare\installagentscript.vbs

    Add arguments:
    DesktopCentralAgent.msi DesktopCentralAgent.mst

    Start in:
    \\computer_name\DCAgentShare\

  13. In Conditions tab, select the checkbox for Start only if the following network connection is available, then select Any connection.
  14. Finally, click OK
  15. You have now successfully initiated agent installation using GPO Scheduler.