---
title: "Deploy a package with an Active Directory GPO"
description: "Deploy Compatibility Packages to servers and desktops with Active Directory group policy."
product: "Alchemy"
edition: "Public"
type: "workflow"
url: "https://docs.cloudhouse.com/public/deploying-packages/technical-reference/deploy-a-package-using-an-active-directory-group-policy-object/"
---
# Deploy a package with an Active Directory GPO

If you are an Administrator, you can deploy your Cloudhouse Alchemy Compatibility Packages to servers and desktops using Active Directory (**AD**) membership and Group Policy Objects (**GPOs**).

Applies to: `Alchemy`

!!! note

    This deployment method is only available for machine deployments, i.e. making an application available to all users on the same computer.

## Assumptions

The following example assumes the Compatibility Package is:

- Called `AppContainer`.
- Stored on the UNC share `\\share\data\packages`.
- To be deployed to the `C:\programdata\cloudhouse` folder on the target server, or desktop.

## Process to deploy Alchemy Compatibility Packages using an AD GPO

1. Create a batch script containing the following command:

    ```
    " \\unc\path\package-folder\Cloudhouse.Container.Deployment.exe" /deploydir "C:\programdata\cloudhouse" /acceptEULA
    ```

2. Test the script executes correctly when run as the `Administrator` user.
3. Open the `**Group Policy Management Console**`.
4. Create a new GPO on the organisational unit (**OU**) in which your computer accounts reside.

## Process 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.
