Get-WmiObject : Generic failure


  • I have a Windows Server 2012 with SCCM 2012 SP1 installed.

    When I try to use the "Get-WmiObject" commandlet I get the famous "Get-WmiObject : Generic failure" error.

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
        + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

    Is there any thing I need to setup before executing WMI based command ?

    • Moved by Robert Marshall - MVPMVP Wednesday, November 28, 2012 8:39 PM Correct forum (From:Configuration Manager 2012 - Site and Client Deployment)
    Tuesday, November 27, 2012 7:49 AM

All replies

  • Not sure why this is "famous", I've never seen it happen before. Also, this really has nothing to do with ConfigMgr. WMI is a Windows OS component and so this question should be addressed on a Windows OS (or maybe PowerShell) forum (I know that doesn't explicitly help you, but you will get a better response there).

    Jason |

    Tuesday, November 27, 2012 1:41 PM
  • Hi,

    Please try below steps:

    1. Check if the WMI Windows Installer Provider windows component is
    installed. If not, install it and try again. If still getting error, go for step
    2 and 3.

    2. Install Windows Installer 4.5

    3. Install Hotfix for Windows Installer 4.5

    After a reboot this should work.

    I hope this helps.


    Yan Li

    Cataleya Li
    TechNet Community Support

    Friday, November 30, 2012 2:53 AM
  • There is no WMI for Windows Server 2012 as per this thread :-

    Friday, November 30, 2012 7:32 AM