How to deploy Containers with an Active Directory Group Policy Object (GPO)

27/03/2019 Cliff Hobbs   ID: 266766

Overview

This article is intended for Administrators who want to deploy their applications to servers and desktops using Active Directory (AD) membership and Group Policy Objects (GPOs).

Note

This method is currently only available for machine deployments only, i.e. making an application available to all users.

Step-by-step guide

The following example assumes the Container is:

  • Called AppContainer
  • Stored on the UNC share \\share\data\containers
  • To be deployed to the C:\programdata\cloudhouse folder on the target server, or desktop.
  1. Create a batch script containing the following command:
    Batch script
    \\unc\path\container-folder\Cloudhouse.Container.Deployment.exe --deploydir C:\programdata\cloudhouse /acceptEULA
  2. Test the script executes correctly when run as an Administrator.
  3. Open the Group Policy Management Console.
  4. Create a new Group Policy Object (GPO) on the organizational unit (OU) in which your computer accounts reside. You may use an existing GPO.

Creating a New GPO

To create a new GPO:

  1. Open the Group Policy Management Console
  2. In the console tree, right-click Group Policy Objects in the forest and domain in which you want to create the GPO.
  3. Click New
  4. In the New GPO dialog box, specify a name for the new GPO and click OK
  5. Open Computer Configuration\Policies\Windows Settings\Scripts (Startup/Shutdown)
  6. In the details pane, double-click Startup
  7. In the Startup Properties dialog box, click Add
  8. In the Add a Script dialog box, under Script Name, type the full network path to the script batch file and the script batch file name created in Step 1. Or you can click Browse to search for the script file in the Netlogon shared folder on the Domain Controller.
  9. Close the Group Policy Management Console
  10. Test the GPO, open Command Prompt and run it as an Administrator.
  11. Run the gpupdate /force command at the command prompt to refresh the group policy.
  12. If the GPO is working, the application in the Container will be installed when the server starts up.
Source:
Was this article helpful?

Table of Contents

    Can't find what you're looking for?

    Contact Support