Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2860
  • Last Modified:

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
0
tw525
Asked:
tw525
1 Solution
 
Will SzymkowskiSenior Solution ArchitectCommented:
0
 
Joseph MoodyBlogger and wearer of all hats.Commented:
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.
0
 
tw525Author Commented:
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
0
 
footechCommented:
It should work if you take off the .exe part.
select * from Win32_Service where Name ="ose"
0
 
tw525Author Commented:
This alteration worked perfectly.  Thank you!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now