Link to home
Start Free TrialLog in
Avatar of tw525
tw525Flag for United States of America

asked on

Looking for GPO/WMI filter to search for Outlook

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.

Thank you,
Mike
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Why not modify your script and have it check to see if outlook is installed?

Or have your script create a file in the User's profile and have it check to see if the file exists?

If you are using autodiscover, you can also configure outlook to automatically configure with administrative templates.
Avatar of tw525

ASKER

Spec01,

That Thread is the one I originally found which produced the current WMI filter:

 root\CIMv2, select * from Win32_Service where Name ="ose.exe"

However that filter does not seem to work on my machine, which is Win7 64bit/Office 32bit.  The policy is being filtered out.  Not sure why.

Jmoody,  Good suggestions.  I'm looking for the most straight forward approach.  We were using straight login scripts to do mapped drives, run a VBS script to configure Outlook and a few other minor items.  I moved the mapped drives to GPO and wanted to do the same for the Outlook script.  Seemed like moving the script there would work and it does for the most part, except in the few instances where there is a machine with no outlook installed.  If i can't get WMI filtering to work or perhpas you feel the overhead is too big of a downside I'd definitely look into exploring the other options you mentioned.  At the end of the day I want the users' Outlook profiles to automatically setup with no intervention from them.  I'd like to do so in the most straight forward manor.  If running the config scrtipt through GPO is not the best way I'd appreciate to hear your feedback.

Thank you,
Mike
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America 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 tw525

ASKER

This alteration worked perfectly.  Thank you!