Looking for GPO/WMI filter to search for Outlook
Posted on 2013-10-28
I have a script running in GPO to confiigure a users Outlook profile if it has not already been configured. It's great for first time users or users logging into terminal servers and such.
The problem is, without the WMI filter, if a user logs into a machine that does not have Outlook installed, they get an error.
So what I'm looking to do is create a WMI filter to check if Outlook is installed on any machine before running the script.
Current filter: root\CIMv2, select * from Win32_Service where Name ="ose.exe". However this does not seem to work. It avoids the error on machines without Outlook installed, yes. however on my machine which does have Outlook if i do a GP result it says the GPO was not applied due to filter.
I'm new to using WMI filters, so I could use some help.
I have heard using Win32_Product can create a lot of overhead and to avoid using it. I certainly don't want to create any additional overhead to my users' logins. If any one has any ideas on how to filter a GPO so it only applies to machines with Outlook installed, then I would be very interested to hear your suggestions.
Your help is appreciated.