Category Archives: wmic

Invalid XSL format (or) file name.

Are you executing some wmic commands, most likely with a format command and getting the following error : Invalid XSL format (or) file name.

for example : wmic process list FULL /FORMAT:CSV

You running on Windows 7 (64-bit) or Windows 2008 R2 and have installed additional keyboards or language settings.

It seems that some wmic commands use files that are located in a localized folder:

on 32-bit : C:WindowsSystem32wbemen-US
on 64-bit : C:WindowsSysWOW64wbemen-US

If you have for example a UK keyboard layout installed, simply copy C:WindowsSysWOW64wbemen-US to C:WindowsSysWOW64wbemen-GB.

Your format command above should work fine now.