Windows Vista Forums

generic error with Get-WmiObject
  1. #1


    Jeff Guest

    generic error with Get-WmiObject

    I've tried executing the following code on computers that are running
    XP, Vista, and 2003 server:
    get-wmiObject -class "win32_printer"

    It works on all of these except for one. On one server(, I get an
    error message that says "Get-WmiObject : Generic failure". I've spent
    a lot of time trying to find a solution to this, but so far nothing
    has helped. I'm running this on the server and not remotely and also
    successfully ran this on several other 2003 servers.



    Does anybody have a suggestion on how to get around this?

    Thanks.

      My System SpecsSystem Spec

  2. #2


    Marco Shaw [MVP] Guest

    Re: generic error with Get-WmiObject

    So there's nothing different on this Server 2003 server? Member of a domain
    vs not?

    Search for "troubleshooting wmi" or "wmi troubleshooting". Here's an
    example:
    http://blogs.msdn.com/pranabm/archiv...-with-wmi.aspx

    I've seen some other good posts from 2009 also.

    Marco

    "Jeff" <jbrusoe@xxxxxx> wrote in message
    news:277f2538-7a3c-47fd-bc95-e9b8c037b993@xxxxxx

    > I've tried executing the following code on computers that are running
    > XP, Vista, and 2003 server:
    > get-wmiObject -class "win32_printer"
    >
    > It works on all of these except for one. On one server(, I get an
    > error message that says "Get-WmiObject : Generic failure". I've spent
    > a lot of time trying to find a solution to this, but so far nothing
    > has helped. I'm running this on the server and not remotely and also
    > successfully ran this on several other 2003 servers.
    >
    > Does anybody have a suggestion on how to get around this?
    >
    > Thanks.

      My System SpecsSystem Spec

  3. #3


    Jeff Guest

    Re: generic error with Get-WmiObject

    Thanks for your response. I'll take a look at that link.

    All of the computers I've tried this on have been a part of the same
    domain. I've tried this on two servers which are both virtual
    machines. On one of these, it gives me the error. On the other it
    doesn't and works perfectly.

    On Sep 10, 8:41*pm, "Marco Shaw [MVP]" <marco.shaw@xxxxxx_SPAMgmail.com>
    wrote:

    > So there's nothing different on this Server 2003 server? *Member of a domain
    > vs not?
    >
    > Search for "troubleshooting wmi" or "wmi troubleshooting". *Here's an
    > example:http://blogs.msdn.com/pranabm/archiv...sics-troublesh...
    >
    > I've seen some other good posts from 2009 also.
    >
    > Marco
    >
    > "Jeff" <jbru...@xxxxxx> wrote in message
    >
    > news:277f2538-7a3c-47fd-bc95-e9b8c037b993@xxxxxx
    >
    >
    >

    > > I've tried executing the following code on computers that are running
    > > XP, Vista, and 2003 server:
    > > get-wmiObject -class "win32_printer"
    >

    > > It works on all of these except for one. *On one server(, I get an
    > > error message that says "Get-WmiObject : Generic failure". *I've spent
    > > a lot of time trying to find a solution to this, but so far nothing
    > > has helped. *I'm running this on the server and not remotely and also
    > > successfully ran this on several other 2003 servers.
    >

    > > Does anybody have a suggestion on how to get around this?
    >

    > > Thanks.

      My System SpecsSystem Spec

generic error with Get-WmiObject problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get-WmiObject Timeout error? Paul Butler PowerShell 0 11 Feb 2009
Get-WmiObject : Generic failure error - not Vista David PowerShell 2 31 May 2008
Get-WmiObject : Generic Failure Mel PowerShell 5 27 Feb 2008
Get-WmiObject : Generic failure /\\/\\o\\/\\/ [MVP] PowerShell 2 04 Apr 2007
Error in Primer? Get-WmiObject fails Jon Davis PowerShell 14 04 Dec 2006