Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Looking for GPO/WMI filter to search for Outlook

Posted on 2013-10-28
5
Medium Priority
?
2,791 Views
Last Modified: 2013-10-29
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
Comment
Question by:tw525
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39606126
0
 
LVL 22

Expert Comment

by:Joseph Moody
ID: 39606131
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
 
LVL 1

Author Comment

by:tw525
ID: 39606737
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
 
LVL 41

Accepted Solution

by:
footech earned 2000 total points
ID: 39607167
It should work if you take off the .exe part.
select * from Win32_Service where Name ="ose"
0
 
LVL 1

Author Closing Comment

by:tw525
ID: 39609191
This alteration worked perfectly.  Thank you!
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question