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)
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
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.
TechNet Community Support