If you try running WMIDiag tool from Microsoft to understand why your WMI provider is not working you will get:
Unsupported Windows version – 64-bit (_____.___.___.__).
ERROR: (Main) : Unsupported OS version or build #.
This is because WMIdiag is supported only up to Windows 2008 R2 or so called build 6.1.
Windows 2012 is build 6.2 (Windows 8 as well) and Windows 2012 R2 is build 6.3. There is a quick and dirty trick how to full script to run on Windows server 2012 and 2012 R2.
So let’s try to run WMIDiag on the Windows 2012.
- Edit WMIDiag.vbs in notepad
- Search and Replace Case “6.1” to Case “6.2” (there is only one replacement that you need to do)
- Save and close
- Run script in the cmd with cscript WMIDiag.vbs
Process for Windows server 2012 R2 and Windows 8.1 is similar instead we just change build to 6.3
- Edit WMIDiag.vbs in notepad
- Search and Replace Case “6.1” to Case “6.3” (there is only one replacement that you need to do)
- Save and close
- Run script in the cmd with cscript WMIDiag.vbs
Now you can explore Report file that WMI Diag created and try to explore what the heck is going on with the WMI database. Often it is corrupted and winmgmt /salvagerepository cmd will save the day and rebuild WMI database so WMI will continue to function correctly.
One Response
Thanks for the workaround.