Link to home
Start Free TrialLog in
Avatar of Jaime Campos
Jaime CamposFlag for United States of America

asked on

GPO WMI Filtering

Hello - I am looking for a script to use within WMI Filtering. The issue is that I have two MSI to deploy from a GPO, however one is a x86 and the other is a x64 version for Office. I need to find out how I can install on proper versions.

I need to be able to query Office 2010, 2013 and 2016 for proper x86 and x64 versions then push proper MSI package to them. I am knew to WMI query language so your help is appreciated.

Thanks,
nimdatx
ASKER CERTIFIED SOLUTION
Avatar of Toni Uranjek
Toni Uranjek
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jaime Campos

ASKER

Awesome I'm going to try. What if my users have different editions like 2010, 2013, or 2016, does it matter? Last question, what if my users have an older version of msi im pushing out will it install new version? THANKS!
No, it does not matter which version Office user has.
If you run your install manually, does it replace your old msi?
Ok, so if I install manually it doesn't replace however keeps existing version and now has two versions. The GPO installed correctly, but if I uninstall, it doesn't reinstall after a restart. Do you know why this is happening. Thank you so much!
Describe your GPO settings.
User generated image
This is set within COmputer Configuration - Policies - Software Settings.

Thank you for staying with me on this issue.
Thanks.

When removed application will not be reinstalled.
You should remove local Administrator priviliges from users to prevent removing software.

When application is installed with GPO, its GUID is entered in this part of registry:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\Appmgmt

If GUID is deleted, application will re-install.

You can not solve this problem easily, because you can not remove such key with script or GPO or it will trigger repetaed reinstallations
Very great response time and excellent IT knowledge! I truly appreciate your time and all your effort.