Test whether a system supports WMI

I found some systems where WMI was broken and needed a way to test if this was the case.  Unfortunately the WMIC command doesn't set errorlevel, so it got a bit tricky. 

Advertisements