1
Why does Win32_BaseBoard return no instances in PowerShell?
wmic path "Win32_BaseBoard" get "Model"
1
Why does Win32_BaseBoard return no instances in PowerShell?
wmic path "Win32_BaseBoard" get "Model"
0
wmic path "Win32_BaseBoard" get "Model"
The above is not a PowerShell command, it is a wmic
command.
It returns no instances (an empty string) because the value Model
has not been set by the manufacturer of your motherboard.
I have the same behaviour on my Sony laptop.
F:\test>wmic baseboard get product, manufacturer, version, serialnumber, model
Manufacturer Model Product SerialNumber Version
Sony Corporation VAIO N/A N/A
1Wait, isn't there a difference between a lack of instances and an instance with a blank value for a particular field? – Ben N – 2016-04-10T20:49:23.353
@BenN I suppose there could be. – DavidPostill – 2016-04-10T21:14:13.507
I am getting 'no instance available' rather than blank value. It's different. The command just returns fine the other day. What could be the cause of getting 'no instance'? – xtu – 2016-04-11T21:13:02.563
@xtu No idea :/ – DavidPostill – 2016-04-11T21:23:20.227
That's not a PowerShell command - did you mean
gwmi Win32_BaseBoard -Property Model
? Also, what is your OS? Is this a virtual machine? – Ben N – 2016-04-10T19:11:47.740I am sure I can run this command in PowerShell and I am sure this it's
wmic
. I am running it on a physical machine which is a Surface Pro 3. – xtu – 2016-04-11T21:14:40.730