WMIDiag Windows server 2012 and Windows server 2012 R2

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.

  1. Edit WMIDiag.vbs in notepad
  2. Search and Replace Case “6.1” to Case “6.2” (there is only one replacement that you need to do)
  3. Save and close
  4. 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

  1. Edit WMIDiag.vbs in notepad
  2. Search and Replace Case “6.1” to Case “6.3” (there is only one replacement that you need to do)
  3. Save and close
  4. 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.

Helping SBC administrators kick-ass Google+

Posted in Windows general, WMI
One comment on “WMIDiag Windows server 2012 and Windows server 2012 R2
  1. Amit says:

    Thanks for the workaround.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Follow me:

  • Facebook
  • Twitter
  • Linkedin
  • Youtube