Word :    Username :           
 

Archived from groups: microsoft.public.win2000.developer,microsoft.public.win2000.general,microsoft.public.windowsxp.basics,microsoft.public.windowsxp.general (More info?)

 

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

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.win2000.developer,microsoft.public.win2000.general,microsoft.public.windowsxp.basics,microsoft.public.windowsxp.general (More info?)

 

"Bart Steur" <solnews@xs4all.nl> wrote in message
news:%23cW9gMSMFHA.1096@tk2msftngp13.phx.gbl...
> 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

Reply to george
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Group Policy
Go to:

There are 805 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them