none
Get-WmiObject : Generic failure

    Question

  • 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 | http://blog.configmgrftw.com

    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

    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4&displaylang=en

    3. Install Hotfix for Windows Installer 4.5

    http://support.microsoft.com/kb/970553

    After a reboot this should work.

    I hope this helps.

    Regards,

    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 :-

    http://social.technet.microsoft.com/Forums/en-US/winserverManagement/thread/35670de2-0c2a-4071-8a4b-94f4cdee084

    Friday, November 30, 2012 7:32 AM