How to Create a GPO to Deploy Software

In this tutorial, we’ll show you how to create a GPO to deploy software on your client devices, saving you the boredom and time involved in carrying out the same task over and over.

Since we’re going to be working with Group Policy Objects (GPO), to complete this tutorial, your server(s) will need to be running Microsoft Active Directory Domain Services (AD DS). However, aside from that, we’re going to try and make sure that this tutorial is useful for both novices who are just getting started and more experienced technicians who just need to refresh their memories.

The tutorial is broken up into three parts, but feel free to skip anything that you already know. Specifically, we’re going to look at:

  • Part 1 – Deploying AD DS.
  • Part 2 – Creating a shared network location.
  • Part 3 – Creating a GPO for deploying software.

 

How to Create a GPO to Deploy Software

 

Before you get started

To complete this tutorial successfully, you will need the following:

  • To have registered on the Jotelulu platform and have logged in.
  • To have a Windows Server with AD DS installed.
  • To have an account with administrator privileges.

 

Part 1 – Deploying AD DS

If you haven’t already done so, you’ll first need to install and configure an AD DS domain, register your Domain Controllers and then register your devices. The devices on your domain will be where we’ll deploy the software later on.

If you haven’t already configured a domain, check out How to Configure AD DS on Your Windows Server.

 

Part 2 – Creating a Shared Network Location

Next, you need to set up a shared network folder so that you can publish the software and map it on your client devices. This is how they will install the software using a GPO.

First, create a folder, right-click on it (1) and select Properties (2).

Part 2 - Open the Properties of your new folder
Part 2 – Open the Properties of your new folder

 

Next, click on the Sharing tab (3) and click on “Advanced Sharing… (4).

A new window will then appear. Here, you should click on the checkbox “Share this folder” (5) and then, click on Permissions (6

Next, remove access from Everyone (7) and click on Add (8) to add new users like the devices and users in your domain.

Part 2 - Editing access to the shared folder
Part 2 – Editing access to the shared folder

Next, click on the Security tab (9) and click on Advanced (10). In the window that appears, select Users (11) to add the necessary permissions.

Part 2 - Editing permissions for the shared folder
Part 2 – Editing permissions for the shared folder

Now that you have given access to your users, you need to check that your changes have been applied successfully. Type the full folder path in the search bar (12) and the folder should appear in the results. Doubleclick on the folder to open it (13).

In the image below, you can see the example “\\SRV-OLIN02-001\SoftRepo”

Part 2 - Check that you can access the shared folder
Part 2 – Check that you can access the shared folder

If you can access the folder without any problems, then everything has been done correctly.

 

Part 3 – Creating a GPO to Deploy Software

To create a GPO, first run Server Manager, click on Tools and then, click on Group Policy Management (14).

NOTE: You can also open the Group Policy Management window by running GPMC.MSC.

Part 3 - Open the Group Policy Management screen
Part 3 – Open the Group Policy Management screen

In the Group Policy Management window, expand the tree on the left-hand side (15) to find the Organisational Unit (OU) on which you want to deploy your new software.

In this tutorial, we want to deploy software on the delegation in Zaragoza.

Once you’ve found the right OU, right-click on it and select Create a GPO in this domain, and Link it here… (16).

Part 3 - Click on Create a GPO in this domain, and Link it here...
Part 3 – Click on Create a GPO in this domain, and Link it here…

You will now see the New GPO window in which you just need to enter a name for your new GPO (17) and click on OK. For this tutorial, we’re going to name it “New PuTTY Installation”.

Part 3 - Give a name to your new GPO
Part 3 – Give a name to your new GPO

Your new GPO should now appear in the Group Policy Management window. Simply right-click on it (18) and click on Edit… (19).

Part 3 - Edit the new GPO
Part 3 – Edit the new GPO

In the Group Policy Management Editor, expand the following branch: Computer Configuration > Policies > Software Settings > Software Installation (20). Right-click on Software Installation and select New > Package… (21).

Part 3 - -Add the new software package to deploy
Part 3 – -Add the new software package to deploy

A new window will now appear in which you need to search for the installation package for your software (22). Once you’ve found it, select it and click on Open.

Part 3 - Select the installation package that you want to provision
Part 3 – Select the installation package that you want to provision

Another window will now appear and you should select Assigned (23) as the software implementation method.

Part 3 - Select Assigned as the software implementation method
Part 3 – Select Assigned as the software implementation method

Next, you should check that you have definitely implemented the software (24).

Part 3 - Check that the software appears as available
Part 3 – Check that the software appears as available

To check that your new GPO has been created correctly, run the command “gpupdate /force” with administrator privileges (24).

You may see a warning that it is going to run a startup policy and the system needs to restart. If this happens type “Y” (25) to continue.

Part 3 - Update your Group Policies
Part 3 – Update your Group Policies

Now check that it has been installed correctly. To do this, go to the search bar and type the name of the program (26). If the program appears in the search results (27), click on it to see whether it runs correctly.

Part 3 - Check that PuTTY has been installed on the machine
Part 3 – Check that PuTTY has been installed on the machine

Now you know that the program works correctly. It will be available on all the devices that you wish to deploy it on.

 

Summary

In this tutorial, we’ve seen how to create a GPO to deploy software on your client devices. This will save you valuable time as a sysadmin so that you can dedicate your efforts to more important things like planning, corrections and improvements. As you can see, it’s a very straightforward process. However, if you do encounter any problems, don’t hesitate to contact us and we’ll try to help you as best we can.

Thanks for reading!

Categorias:Servidores