Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - softwares installed on a remote system

Reply
 
Old 09-21-2007   #1 (permalink)
sekhar


 
 

softwares installed on a remote system

Hi all,

Can some one help me finding out the softwares installe on a remote system
using powershell?
I am able to find the installed softwares using "win32_product". When I am
giving the -computer "computername", the error comes saying "Invalid class".

Thanks,
Sekhar

My System SpecsSystem Spec
Old 09-21-2007   #2 (permalink)
RichS


 
 

RE: softwares installed on a remote system

What OS does your remote machine use. have you tried running the code
locally on that machine
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"sekhar" wrote:
Quote:

> Hi all,
>
> Can some one help me finding out the softwares installe on a remote system
> using powershell?
> I am able to find the installed softwares using "win32_product". When I am
> giving the -computer "computername", the error comes saying "Invalid class".
>
> Thanks,
> Sekhar
My System SpecsSystem Spec
Old 09-21-2007   #3 (permalink)
sekhar


 
 

RE: softwares installed on a remote system

Hi Richard,
The remote system os is windows 2003. But this command is not working for
any of the remote system. To run locally on the remote system, i have to
install powershell there also. I think there might be a syntax mistake. Can
you please help me out?

"RichS" wrote:
Quote:

> What OS does your remote machine use. have you tried running the code
> locally on that machine
> --
> Richard Siddaway
> Please note that all scripts are supplied "as is" and with no warranty
> Blog: http://richardsiddaway.spaces.live.com/
> PowerShell User Group: http://www.get-psuguk.org.uk
>
>
> "sekhar" wrote:
>
Quote:

> > Hi all,
> >
> > Can some one help me finding out the softwares installe on a remote system
> > using powershell?
> > I am able to find the installed softwares using "win32_product". When I am
> > giving the -computer "computername", the error comes saying "Invalid class".
> >
> > Thanks,
> > Sekhar
My System SpecsSystem Spec
Old 09-21-2007   #4 (permalink)
RichS


 
 

RE: softwares installed on a remote system

can you post the code you are using
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"sekhar" wrote:
Quote:

> Hi Richard,
> The remote system os is windows 2003. But this command is not working for
> any of the remote system. To run locally on the remote system, i have to
> install powershell there also. I think there might be a syntax mistake. Can
> you please help me out?
>
> "RichS" wrote:
>
Quote:

> > What OS does your remote machine use. have you tried running the code
> > locally on that machine
> > --
> > Richard Siddaway
> > Please note that all scripts are supplied "as is" and with no warranty
> > Blog: http://richardsiddaway.spaces.live.com/
> > PowerShell User Group: http://www.get-psuguk.org.uk
> >
> >
> > "sekhar" wrote:
> >
Quote:

> > > Hi all,
> > >
> > > Can some one help me finding out the softwares installe on a remote system
> > > using powershell?
> > > I am able to find the installed softwares using "win32_product". When I am
> > > giving the -computer "computername", the error comes saying "Invalid class".
> > >
> > > Thanks,
> > > Sekhar
My System SpecsSystem Spec
Old 09-21-2007   #5 (permalink)
sekhar


 
 

RE: softwares installed on a remote system

Ya, sure. Here you go:

$prod = Get-WmiObject win32_product -computer computername

The error I am getting is:
Get-WmiObject : Invalid class
At line:1 char:22
+ $prod = Get-WmiObject <<<< win32_product -computer computername


"RichS" wrote:
Quote:

> can you post the code you are using
> --
> Richard Siddaway
> Please note that all scripts are supplied "as is" and with no warranty
> Blog: http://richardsiddaway.spaces.live.com/
> PowerShell User Group: http://www.get-psuguk.org.uk
>
>
> "sekhar" wrote:
>
Quote:

> > Hi Richard,
> > The remote system os is windows 2003. But this command is not working for
> > any of the remote system. To run locally on the remote system, i have to
> > install powershell there also. I think there might be a syntax mistake. Can
> > you please help me out?
> >
> > "RichS" wrote:
> >
Quote:

> > > What OS does your remote machine use. have you tried running the code
> > > locally on that machine
> > > --
> > > Richard Siddaway
> > > Please note that all scripts are supplied "as is" and with no warranty
> > > Blog: http://richardsiddaway.spaces.live.com/
> > > PowerShell User Group: http://www.get-psuguk.org.uk
> > >
> > >
> > > "sekhar" wrote:
> > >
> > > > Hi all,
> > > >
> > > > Can some one help me finding out the softwares installe on a remote system
> > > > using powershell?
> > > > I am able to find the installed softwares using "win32_product". When I am
> > > > giving the -computer "computername", the error comes saying "Invalid class".
> > > >
> > > > Thanks,
> > > > Sekhar
My System SpecsSystem Spec
Old 09-21-2007   #6 (permalink)
Brandon Shell


 
 

Re: softwares installed on a remote system

I am not sure you know this, but that class is not a safe one to assume is
there... i.e. you have to install on Win2k3.

"sekhar" <sekhar@xxxxxx> wrote in message
news:2DE04E18-4884-4221-B7B1-C9B00A9D8607@xxxxxx
Quote:

> Ya, sure. Here you go:
>
> $prod = Get-WmiObject win32_product -computer computername
>
> The error I am getting is:
> Get-WmiObject : Invalid class
> At line:1 char:22
> + $prod = Get-WmiObject <<<< win32_product -computer computername
>
>
> "RichS" wrote:
>
Quote:

>> can you post the code you are using
>> --
>> Richard Siddaway
>> Please note that all scripts are supplied "as is" and with no warranty
>> Blog: http://richardsiddaway.spaces.live.com/
>> PowerShell User Group: http://www.get-psuguk.org.uk
>>
>>
>> "sekhar" wrote:
>>
Quote:

>> > Hi Richard,
>> > The remote system os is windows 2003. But this command is not working
>> > for
>> > any of the remote system. To run locally on the remote system, i have
>> > to
>> > install powershell there also. I think there might be a syntax mistake.
>> > Can
>> > you please help me out?
>> >
>> > "RichS" wrote:
>> >
>> > > What OS does your remote machine use. have you tried running the
>> > > code
>> > > locally on that machine
>> > > --
>> > > Richard Siddaway
>> > > Please note that all scripts are supplied "as is" and with no
>> > > warranty
>> > > Blog: http://richardsiddaway.spaces.live.com/
>> > > PowerShell User Group: http://www.get-psuguk.org.uk
>> > >
>> > >
>> > > "sekhar" wrote:
>> > >
>> > > > Hi all,
>> > > >
>> > > > Can some one help me finding out the softwares installe on a remote
>> > > > system
>> > > > using powershell?
>> > > > I am able to find the installed softwares using "win32_product".
>> > > > When I am
>> > > > giving the -computer "computername", the error comes saying
>> > > > "Invalid class".
>> > > >
>> > > > Thanks,
>> > > > Sekhar
My System SpecsSystem Spec
Old 09-21-2007   #7 (permalink)
Shay Levi


 
 

Re: softwares installed on a remote system

Agree.

In addition, You might get only a small portion of products since win32_product

lists only products that were installed via Windows Installer.


Shay
http://scriptolog.blogspot.com


Quote:

> I am not sure you know this, but that class is not a safe one to
> assume is there... i.e. you have to install on Win2k3.
>
> "sekhar" <sekhar@xxxxxx> wrote in message
> news:2DE04E18-4884-4221-B7B1-C9B00A9D8607@xxxxxx
>
Quote:

>> Ya, sure. Here you go:
>>
>> $prod = Get-WmiObject win32_product -computer computername
>>
>> The error I am getting is:
>> Get-WmiObject : Invalid class
>> At line:1 char:22
>> + $prod = Get-WmiObject <<<< win32_product -computer computername
>> "RichS" wrote:
>>
Quote:

>>> can you post the code you are using
>>> --
>>> Richard Siddaway
>>> Please note that all scripts are supplied "as is" and with no
>>> warranty
>>> Blog: http://richardsiddaway.spaces.live.com/
>>> PowerShell User Group: http://www.get-psuguk.org.uk
>>> "sekhar" wrote:
>>>
>>>> Hi Richard,
>>>> The remote system os is windows 2003. But this command is not
>>>> working
>>>> for
>>>> any of the remote system. To run locally on the remote system, i
>>>> have
>>>> to
>>>> install powershell there also. I think there might be a syntax
>>>> mistake.
>>>> Can
>>>> you please help me out?
>>>> "RichS" wrote:
>>>>
>>>>> What OS does your remote machine use. have you tried running the
>>>>> code
>>>>> locally on that machine
>>>>> --
>>>>> Richard Siddaway
>>>>> Please note that all scripts are supplied "as is" and with no
>>>>> warranty
>>>>> Blog: http://richardsiddaway.spaces.live.com/
>>>>> PowerShell User Group: http://www.get-psuguk.org.uk
>>>>> "sekhar" wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> Can some one help me finding out the softwares installe on a
>>>>>> remote
>>>>>> system
>>>>>> using powershell?
>>>>>> I am able to find the installed softwares using "win32_product".
>>>>>> When I am
>>>>>> giving the -computer "computername", the error comes saying
>>>>>> "Invalid class".
>>>>>> Thanks,
>>>>>> Sekhar

My System SpecsSystem Spec
Old 09-21-2007   #8 (permalink)
sekhar


 
 

Re: softwares installed on a remote system

So, you mean to say that if i will install on a win2k3 server, i should be
able to retrieve remote product information from all other win2k3 servers.
Please confirm.

"Brandon Shell" wrote:
Quote:

> I am not sure you know this, but that class is not a safe one to assume is
> there... i.e. you have to install on Win2k3.
>
> "sekhar" <sekhar@xxxxxx> wrote in message
> news:2DE04E18-4884-4221-B7B1-C9B00A9D8607@xxxxxx
Quote:

> > Ya, sure. Here you go:
> >
> > $prod = Get-WmiObject win32_product -computer computername
> >
> > The error I am getting is:
> > Get-WmiObject : Invalid class
> > At line:1 char:22
> > + $prod = Get-WmiObject <<<< win32_product -computer computername
> >
> >
> > "RichS" wrote:
> >
Quote:

> >> can you post the code you are using
> >> --
> >> Richard Siddaway
> >> Please note that all scripts are supplied "as is" and with no warranty
> >> Blog: http://richardsiddaway.spaces.live.com/
> >> PowerShell User Group: http://www.get-psuguk.org.uk
> >>
> >>
> >> "sekhar" wrote:
> >>
> >> > Hi Richard,
> >> > The remote system os is windows 2003. But this command is not working
> >> > for
> >> > any of the remote system. To run locally on the remote system, i have
> >> > to
> >> > install powershell there also. I think there might be a syntax mistake.
> >> > Can
> >> > you please help me out?
> >> >
> >> > "RichS" wrote:
> >> >
> >> > > What OS does your remote machine use. have you tried running the
> >> > > code
> >> > > locally on that machine
> >> > > --
> >> > > Richard Siddaway
> >> > > Please note that all scripts are supplied "as is" and with no
> >> > > warranty
> >> > > Blog: http://richardsiddaway.spaces.live.com/
> >> > > PowerShell User Group: http://www.get-psuguk.org.uk
> >> > >
> >> > >
> >> > > "sekhar" wrote:
> >> > >
> >> > > > Hi all,
> >> > > >
> >> > > > Can some one help me finding out the softwares installe on a remote
> >> > > > system
> >> > > > using powershell?
> >> > > > I am able to find the installed softwares using "win32_product".
> >> > > > When I am
> >> > > > giving the -computer "computername", the error comes saying
> >> > > > "Invalid class".
> >> > > >
> >> > > > Thanks,
> >> > > > Sekhar
>
>
My System SpecsSystem Spec
Old 09-21-2007   #9 (permalink)
Brandon Shell


 
 

Re: softwares installed on a remote system

That is $true, but note that not all properties are available and it only
works for applications that are installed using Windows Installer (as Shay
said.)

This link will tell you what properties you can access
http://msdn2.microsoft.com/en-us/library/aa394378.aspx

"sekhar" <sekhar@xxxxxx> wrote in message
news:91450596-9E31-4607-8D19-D0316A95FFFD@xxxxxx
Quote:

> So, you mean to say that if i will install on a win2k3 server, i should be
> able to retrieve remote product information from all other win2k3 servers.
> Please confirm.
>
> "Brandon Shell" wrote:
>
Quote:

>> I am not sure you know this, but that class is not a safe one to assume
>> is
>> there... i.e. you have to install on Win2k3.
>>
>> "sekhar" <sekhar@xxxxxx> wrote in message
>> news:2DE04E18-4884-4221-B7B1-C9B00A9D8607@xxxxxx
Quote:

>> > Ya, sure. Here you go:
>> >
>> > $prod = Get-WmiObject win32_product -computer computername
>> >
>> > The error I am getting is:
>> > Get-WmiObject : Invalid class
>> > At line:1 char:22
>> > + $prod = Get-WmiObject <<<< win32_product -computer computername
>> >
>> >
>> > "RichS" wrote:
>> >
>> >> can you post the code you are using
>> >> --
>> >> Richard Siddaway
>> >> Please note that all scripts are supplied "as is" and with no warranty
>> >> Blog: http://richardsiddaway.spaces.live.com/
>> >> PowerShell User Group: http://www.get-psuguk.org.uk
>> >>
>> >>
>> >> "sekhar" wrote:
>> >>
>> >> > Hi Richard,
>> >> > The remote system os is windows 2003. But this command is not
>> >> > working
>> >> > for
>> >> > any of the remote system. To run locally on the remote system, i
>> >> > have
>> >> > to
>> >> > install powershell there also. I think there might be a syntax
>> >> > mistake.
>> >> > Can
>> >> > you please help me out?
>> >> >
>> >> > "RichS" wrote:
>> >> >
>> >> > > What OS does your remote machine use. have you tried running the
>> >> > > code
>> >> > > locally on that machine
>> >> > > --
>> >> > > Richard Siddaway
>> >> > > Please note that all scripts are supplied "as is" and with no
>> >> > > warranty
>> >> > > Blog: http://richardsiddaway.spaces.live.com/
>> >> > > PowerShell User Group: http://www.get-psuguk.org.uk
>> >> > >
>> >> > >
>> >> > > "sekhar" wrote:
>> >> > >
>> >> > > > Hi all,
>> >> > > >
>> >> > > > Can some one help me finding out the softwares installe on a
>> >> > > > remote
>> >> > > > system
>> >> > > > using powershell?
>> >> > > > I am able to find the installed softwares using "win32_product".
>> >> > > > When I am
>> >> > > > giving the -computer "computername", the error comes saying
>> >> > > > "Invalid class".
>> >> > > >
>> >> > > > Thanks,
>> >> > > > Sekhar
>>
>>
My System SpecsSystem Spec
Old 09-21-2007   #10 (permalink)
sekhar


 
 

Re: softwares installed on a remote system

Any other code that can fulfil my requirement? From my xp system, i will be
able to retrieve the information.

"Brandon Shell" wrote:
Quote:

> That is $true, but note that not all properties are available and it only
> works for applications that are installed using Windows Installer (as Shay
> said.)
>
> This link will tell you what properties you can access
> http://msdn2.microsoft.com/en-us/library/aa394378.aspx
>
> "sekhar" <sekhar@xxxxxx> wrote in message
> news:91450596-9E31-4607-8D19-D0316A95FFFD@xxxxxx
Quote:

> > So, you mean to say that if i will install on a win2k3 server, i should be
> > able to retrieve remote product information from all other win2k3 servers.
> > Please confirm.
> >
> > "Brandon Shell" wrote:
> >
Quote:

> >> I am not sure you know this, but that class is not a safe one to assume
> >> is
> >> there... i.e. you have to install on Win2k3.
> >>
> >> "sekhar" <sekhar@xxxxxx> wrote in message
> >> news:2DE04E18-4884-4221-B7B1-C9B00A9D8607@xxxxxx
> >> > Ya, sure. Here you go:
> >> >
> >> > $prod = Get-WmiObject win32_product -computer computername
> >> >
> >> > The error I am getting is:
> >> > Get-WmiObject : Invalid class
> >> > At line:1 char:22
> >> > + $prod = Get-WmiObject <<<< win32_product -computer computername
> >> >
> >> >
> >> > "RichS" wrote:
> >> >
> >> >> can you post the code you are using
> >> >> --
> >> >> Richard Siddaway
> >> >> Please note that all scripts are supplied "as is" and with no warranty
> >> >> Blog: http://richardsiddaway.spaces.live.com/
> >> >> PowerShell User Group: http://www.get-psuguk.org.uk
> >> >>
> >> >>
> >> >> "sekhar" wrote:
> >> >>
> >> >> > Hi Richard,
> >> >> > The remote system os is windows 2003. But this command is not
> >> >> > working
> >> >> > for
> >> >> > any of the remote system. To run locally on the remote system, i
> >> >> > have
> >> >> > to
> >> >> > install powershell there also. I think there might be a syntax
> >> >> > mistake.
> >> >> > Can
> >> >> > you please help me out?
> >> >> >
> >> >> > "RichS" wrote:
> >> >> >
> >> >> > > What OS does your remote machine use. have you tried running the
> >> >> > > code
> >> >> > > locally on that machine
> >> >> > > --
> >> >> > > Richard Siddaway
> >> >> > > Please note that all scripts are supplied "as is" and with no
> >> >> > > warranty
> >> >> > > Blog: http://richardsiddaway.spaces.live.com/
> >> >> > > PowerShell User Group: http://www.get-psuguk.org.uk
> >> >> > >
> >> >> > >
> >> >> > > "sekhar" wrote:
> >> >> > >
> >> >> > > > Hi all,
> >> >> > > >
> >> >> > > > Can some one help me finding out the softwares installe on a
> >> >> > > > remote
> >> >> > > > system
> >> >> > > > using powershell?
> >> >> > > > I am able to find the installed softwares using "win32_product".
> >> >> > > > When I am
> >> >> > > > giving the -computer "computername", the error comes saying
> >> >> > > > "Invalid class".
> >> >> > > >
> >> >> > > > Thanks,
> >> >> > > > Sekhar
> >>
> >>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to view remote certificates installed on remote machine? PowerShell
Softwares that try to connect to remote repositories fail. Vista General
where are vista pre-installed remote control drivers+registry entr Vista file management
list installed certs on remote machine PowerShell
Remote assistance fix for Vista with AV software installed? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46