Showing posts with label wmic. Show all posts
Showing posts with label wmic. Show all posts
Friday, May 15, 2015
LSPCI using WMI ( WMIC )
From Command Prompt:
Wmic path win32_pnpentity where "deviceid like '%PCI%'" get name,deviceid
with powershell:
gwmi win32_pnpentity | where{$_.deviceid -match "PCI"} | select name,deviceid
Friday, July 8, 2011
wmic “Invalid XSL format (or) file name.”
So on my windows 7 box trying to:
wmic product get /format:csv
produces a output:
Invalid XSL format (or) file name.
Located teh csv.xsl file in C:\windows\system32\wbem\en-US
Guessed that it was unable to locate the xsl format file...
so copied it to the local path and it worked !
Confirmed this with Process monitor :-(
It seems to be looking for the correct locale so I added a C:\windows\system32\wbem\en-US to C:\windows\system32\wbem\en-AU
since we all don't live in the US of A... :-|
Alternative options are:
I just copied to C:\windows\system32\wbem\en-US\*.xls to C:\windows\system32
Subscribe to:
Posts (Atom)