Solved

Deploy Software Based on Criteria

Posted on 2009-04-08
8
210 Views
Last Modified: 2012-05-06
I have a domain with roughly 120 PCs and 30 or so servers.  I want to be able to use Software Installation through AD using .msi files, or other means, and target based on machines that need it.

For example, I need to deploy the Office 2007 Compatibility pack.  I know how to deploy it to the whole domain, but I don't want to deploy to machines that have Office 2007, or servers.

I could create an OU for machines with this, but doing an OU for each install would get messy quick.

Any suggestions on how I can do this effectively, and going forward for other installations once I define the scope?
0
Comment
Question by:rosederekj
  • 4
  • 2
  • 2
8 Comments
 
LVL 38

Assisted Solution

by:Shift-3
Shift-3 earned 300 total points
ID: 24097918
If all of your machines are XP or newer then you can use a WMI filter to restrict which machines the GPO applies to.
0
 
LVL 8

Assisted Solution

by:mikainz
mikainz earned 200 total points
ID: 24097939
You can use a computer group which you allow the processing of your GPO.
+ easy to set up
- you need to add the computer objects to the group to get the software
You can build a WMI-filter.
- need knowledge of WMI-filtering
+ not further maintance if new computers are member of your domain.
hth
0
 

Author Comment

by:rosederekj
ID: 24098430
Seems good, but what would an example be?  I went to create a WMI filter but couldn't find any syntax examples.  In the attached screen capture, I have a filter I named "Test for Office Compatability Pack", then went to "Add" for the Query, and I assumed the namespace is root\cimv2\applications.

What would I have to put for instance to find machines with Office 2003 Basic Edition, and/or Office 2003 Professional?
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:rosederekj
ID: 24098953
Update -

I found the syntax I believe:

SELECT * FROM Win32_Product WHERE (Caption <> "Microsoft Office%2007%")

or I can use

SELECT * FROM Win32_Product WHERE (Caption LIKE "Microsoft Office%2003%")

In both cases when I try to save, I get the error of "a syntax error occured trying to evaluate a query string"
0
 

Author Comment

by:rosederekj
ID: 24099775
I have what I need with regards to the query -

SELECT * FROM Win32_Product
WHERE Name Like 'Microsoft Office %2003%'

Question is how can I test this query?  I would like to see what machines it returns so I can validate a few.
0
 
LVL 38

Accepted Solution

by:
Shift-3 earned 300 total points
ID: 24099928
There doesn't appear to be a good way to test it other than creating a new sub-OU, moving some computers into it, applying a GPO to it with a filter, then using the Group Policy Results node in GPMC to see which ones it applied to.
0
 
LVL 8

Assisted Solution

by:mikainz
mikainz earned 200 total points
ID: 24100017
You can only try to execute the WMI-query via vbscript on different remote machines,
think there are a lot of examples how to do this.
maybe you can check out http://support.microsoft.com/kb/305702/en-us
and you can adopt the script for your
hth
0
 

Author Closing Comment

by:rosederekj
ID: 31568060
WMI Filtering and the Sub OU to test the output works for me -thanks everyone!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Installing a printer using group policy preferences is not that hard let’s take a look at it. First lets open up your group policy console and edit the policy you want to add it to. I recommend creating a new policy for each printer makes it a l…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

813 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now