Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group Policy WMI filter for Office/Outlook version

Status
Not open for further replies.

disturbedone

Vendor
Sep 28, 2006
781
AU
I've used WMI filters for various things successfully but am struggling with trying to get one to work for finding the version of Office (or more specifically Outlook) so that a GPO only applies if a specific version Office/Outlook is installed.

Google hasn't helped much. About the closest I've come is:
Code:
SELECT * FROM Win32_Product WHERE (Caption LIKE "Microsoft Office %2013%")

but the GPO doesn't apply and when I run:
Code:
gwmi -query 'SELECT * FROM Win32_Product WHERE (Caption LIKE "Microsoft Office %2013%")'

in Powershell it just hangs and doesn't give any result.

Any ideas how to get a WMI filter to do this?
 
You are trying too hard. Microsoft has this already done for you, you just need to install the templates into your AD.
Office 2013 Administrative Template files (ADMX/ADML) and Office Customization Tool

I hope that helps.

Regards,

Mark

No trees were harmed in posting this message, however a significant number of electrons were terribly inconvenienced.

Check out my scripting solutions at
Work SMARTER not HARDER.
 
I don't want to apply settings for Outlook which is what those ADMX files do. I want to do something (install an application) depending on whether Outlook 64-bit is installed but do something different (install a different application) if Outlook 32-bit is installed.

How can I use WMI filtering to find what version is installed? Once I've found out I can then install the required application.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top