Group Policy Software Installation (GPSI) is one of the greatest gifts that Microsoft has given you! It is a free and semi-robust application deployment solution. Almost any organization can manage their entire application infrastructure with it. GPSI does have a few limitations though. One notable limit is the all or nothing redeployment option.
Wouldn’t it be awesome if you could selectively reinstall applications for a specific computer or for a small group of computers? Today, we are going to learn how to reinstall an application on a single machine and on multiple computers.
Reinstall a GPSI Application on a Single Machine
When you deploy an application through Group Policy, the local machine stores the GPSI information within HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\AppMgmt . Each installed application has a unique ID assigned to it. This ID is the same for every machine. In the screenshot below, you can see an example of a deployed application named Mochasoft. It’s unique registry ID is {606…..}.
We can trigger an automatic reinstall by deleting the {606….} registry key and rebooting the machine. The Group Policy client will initiate a reinstall of the application at startup. Deleting a registry key this way can be a bit time consuming.
To make this easier, you can use a free app to list and delete these IDs. Before we continue, head over to the Tools page and download the MSI Manager App. It is located under the Active Directory/Group Policy section. Pin it to your Start Menu/Start Screen. You will use it often!
When you first launch MSI Manager, enter a computer name and press Scan. For testing, you can enter in your local machine name. MSI Manager will connect to the machine and list all of the GPSI applications. You can select an application and press Go to remove the registry entry and to trigger a GPUpdate.
The force reboot option will reboot the machine and allow the application to reinstall without waiting. If you have Verbose Mode enabled, you can even watch the application install. Go ahead and try this out on a machine. It is pretty sweet!
Reinstall a GPSI Application on Multiple Machines
Occasionally, you might need to reinstall an application on a small group of computers. Group Policy Registry Preferences can make this possible! In this example, we are wanting to reinstall our Mochasoft application on a specific lab of computers. In Active Directory, we will create a new security group named ReInstall_APP_Mochasoft and add our computers to this group.
Next, we will edit our APP_Mochasoft GPO which deploys our application. We will expand to Computer Configuration/Preferences/Windows Settings/Registry . Finally, we will create a new Registry Item and set the Action to Delete.
Under the keypath, we will enter SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\AppMgmt\REGISTRY ID
To streamline this preference, we will click on the Common tab and check Apply once and do not reapply. We also want this preference to apply to our specific group of computers. We will select Item-level targeting and configure a new Security Group target that scopes this preference down to your ReInstall security group.
On the next GPUpdate, our machines will remove the specific GPSI registry key. On the next reboot, they will reinstall the application! This is how I selectively reinstall GPSI applications on specific computers and on computer groups.
How do you currently manage this? Do you have any tips on improving this process? If so, share them in the comments!
Everytime I try to search a network PC nothing happens and no results are found. Running as Domain Admin, what do I need to enable or change for this to work? Win 7 network running on SBS 2011.
Do these machines actually have an MSI deployed to them through Group Policy?
I am seeing the same thing – I specify a remote computer, press Scan and nothing happens. I have also tried running under an administrator account and have also tried on another computer where I am an Administrator. And yes, the remote computers I have tried do have multiple group policy deployments. In fact, if I run the tool on the remote machine directly then it lists them.
Hello,
Your tool *almost* does exactly what I need. Due to a bad MSI from Adobe, I need to quickly remove the reg entries your tool finds, but I do not wish to reinstall. How do we UNcheck the “Reinstall” checkbox in your tool?
Thanks!
Hi Michael – this actually isn’t my tool so I can’t really edit it.
The registry keys you need to delete are stored in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\AppMgmt. You can use group policy registry preferences to delete these keys.