Group Policy

B

Bart Steur

How can I detect that a Group Policy Software Installation is correctly
applied on the users computer en make sure it's running the version of the
program deployed in the specified msi. Without checking that users computer.
(in a company with 50+ users I don't want to check each computer
indiviually, but I still want to make sure everybody is running the same
version)

Bart
 
G

george

Bart Steur said:
How can I detect that a Group Policy Software Installation is correctly
applied on the users computer en make sure it's running the version of the
program deployed in the specified msi. Without checking that users
computer. (in a company with 50+ users I don't want to check each computer
indiviually, but I still want to make sure everybody is running the same
version)

Bart

You could run a WMI script against those machines using the WIN32_Product
object and collect the result centrally to be inspected.
I'm not at all fluent in WMI scripting, but a very basic script looks like
this:

Dim strComputer
Dim objWMIService
Dim colItems

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Product",,48)
For Each objItem in colItems
WScript.Echo "Caption: " & objItem.Caption
WScript.Echo "Description: " & objItem.Description
WScript.Echo "IdentifyingNumber: " & objItem.IdentifyingNumber
WScript.Echo "InstallDate: " & objItem.InstallDate
WScript.Echo "InstallDate2: " & objItem.InstallDate2
WScript.Echo "InstallLocation: " & objItem.InstallLocation
WScript.Echo "InstallState: " & objItem.InstallState
WScript.Echo "Name: " & objItem.Name
WScript.Echo "PackageCache: " & objItem.PackageCache
WScript.Echo "SKUNumber: " & objItem.SKUNumber
WScript.Echo "Vendor: " & objItem.Vendor
WScript.Echo "Version: " & objItem.Version
Next

producing (as part of an example) the following output::

Caption: Microsoft AntiSpyware
Description: Microsoft AntiSpyware
IdentifyingNumber: {536F7C74-844B-4683-B0C5-EA39E19A6FE3}
InstallDate: 20050223
InstallDate2: 20050223000000.000000-000
InstallLocation: C:\Program Files\Microsoft AntiSpyware\
InstallState: 5
Name: Microsoft AntiSpyware
PackageCache: C:\WINDOWS\Installer\1c7eea4.msi
SKUNumber:
Vendor: Microsoft Corporation
Version: 1.0


OK. The script needs work and maybe someone else here can help out with
this.

hth

george
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top