Hmmm, Ok. So what's a good method of getting a software inventory done
remotely?   

> -----Original Message-----
> From: Grakowsky, Richard (ETS: Communications and Network 
> Services) [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 29, 2004 11:02 AM
> To: Matt Bazan; [EMAIL PROTECTED]
> Subject: RE: Using WMI to obtain workstation software inventory
> 
> Someone correct me if I'm wrong here, but I BELIEVE that the WMI
> interface will only report those applications installed via 
> an MSI file
> installation.
> 
> But I could be wrong here...
> 
> Thanks,
> Rick
> ----------------------------------------------------------------
> Richard Grakowsky
> Senior Systems Specialist, Monroe Community College
> [EMAIL PROTECTED]
> Office: 585.292.3236 / Fax: 585.427.2749
> "Progress occurs when we are no longer willing
> to accept the consequences of inaction."
> ----------------------------------------------------------------
> ETS Tech News - Virus Information, Quick Tips and More...
>  
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of
> Matt Bazan
> Sent: Tuesday, June 29, 2004 1:45 PM
> To: [EMAIL PROTECTED]
> Subject: Using WMI to obtain workstation software inventory
> 
> Hi,
>       The following code is what I've been trying to use in order to
> get a listing of installed software on workstations.  When running,
> however, it only prints out 3 of the 2 dozen or so installed software
> products.  Can someone look it over and see where I've gone astray?
> Thx.
> 
> my $WMI =
> Win32::OLE->GetObject("winmgmts:{impersonationLevel=impersonate,
>                                                   (security)}//$1") {
> # $1 contains remote
> # workstation IP
> my $SOFTWARE = $WMI->InstancesOf("Win32_Product");
> foreach my $PRODUCT (in ($SOFTWARE) ) {
>     $SW_PACKAGE = $PRODUCT->Name;
>     print "$SW_PACKAGE\n";
> }
> 
> Matt
> 
> _______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 
> 
> 
> 

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to