Windows-itpro-docs: Using this script breaks WMIC

Created on 9 Feb 2020  Â·  7Comments  Â·  Source: MicrosoftDocs/windows-itpro-docs

After running this script as admin with the flags -Enable and -AutoReboot, executing the command "wmic os get caption" results in an "Unspecified error".


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

identity protection

All 7 comments

Script version was 3.6. I disabled credential guard and the stated command works again.

Maybe that's the reason or one at least, why the output of
wmic /?
display a red "WMIC is outdated" message in commandline window

@beerisgood I completely agree but when you need to use tools (in my case Apache Cordova) that depend on wmic, it still won't help. I'll file an issue at Cordova but stuff shouldn't just break.

@ArthurHNL

The broken script is being passed to independent contributors for investigation. Thank you for the feedback.

@ArthurHNL I see you said script version 3.6 breaks WMIC functionality. The article you mentioned contains script version 3.7. Were you able to reproduce the issue also with 3.7?

LogAndConsole "Readiness Tool Version 3.7 Release. `nTool to check if your device is capable to run Device Guard and Credential Guard.

Also, were you able to file an issue with Cordova? What was their answer about this?

I have not tried reproducing this with the new version of the script and, since my system is stable now, I am not planning on testing it. I already found an issue at cordova: https://github.com/apache/cordova-cli/issues/434 and I filed an issue at the underlying Node.js module used by cordova that depends on wmic: https://github.com/sindresorhus/windows-release/issues/14.

@ArthurHNL thank you for you answer.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ang216 picture ang216  Â·  3Comments

arcotek-ltd picture arcotek-ltd  Â·  3Comments

LanceMcCarthy picture LanceMcCarthy  Â·  3Comments

sundhaug92 picture sundhaug92  Â·  3Comments

marcnil815 picture marcnil815  Â·  3Comments