I ran across a machine today that wasn’t letting me run wmic commands on it. I was getting a few different errors
Facility = Win32
After a good deal of fiddling I got it to work by doing the following
Stop winmgmt and it’s needed dependencies
goto \\remotemachine\c$\windows\system32\wbem
rename the Repository directory to something else
start winmgmt on the remotemachine
open cmd window via psexec on the remote machine and add a hkcu key
rename remotemachine's c:\windows\system32\wbem\repository
sc \\remotemachine start winmgmt
psexec \\remotemachine cmd.exe
reg add "hkcu\Environment" /v PROCESSOR_ARCHITECTURE /t REG_SZ /d x86
Then while still in the remote cmd window try wmic and it should work