I think I may have filed this prematurely as well. Nano does have WMI support, which changes the scope of this ticket for Facter 2 – "Nano Server supports the full WMI, because it was too costly for Microsoft to rewrite all the existing providers to be OMI-compliant"
In a quick test, I executed all the above queries within Nano, and found that there are a few that didn't work:
select Name from Win32_Processor
PS C:\> Get-CimInstance -Query 'Select Name From Win32_Processor'
|
Get-CimInstance -Query 'Select Name From Win32_Processor'
|
|
DeviceID Name Caption MaxClockSpeed Socket
|
Design
|
ation
|
-------- ---- ------- ------------- ------
|
CPU0 Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
|
CPU1 Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
|
select DNSDomain from Win32_NetworkAdapterConfiguration where IPEnabled = True
PS C:\> Get-CimInstance -Query 'Select DNSDomain From Win32_NetworkAdapterConfiguration WHERE IpEnabled = TRUE'
|
Get-CimInstance -Query 'Select DNSDomain From Win32_NetworkAdapterConfiguration WHERE IpEnabled = TRUE'
|
No results, despite:
PS C:\> ipconfig
|
ipconfig
|
|
Windows IP Configuration
|
|
|
Ethernet adapter vEthernet (Container NIC 74c9f022):
|
|
Connection-specific DNS Suffix . : delivery.puppetlabs.net
|
Link-local IPv6 Address . . . . . : fe80::cd56:de95:1d0e:4c1a%17
|
IPv4 Address. . . . . . . . . . . : 172.27.86.39
|
Subnet Mask . . . . . . . . . . . : 255.255.240.0
|
Default Gateway . . . . . . . . . : 172.27.80.1
|
select Architecture, Level, AddressWidth from Win32_Processor
PS C:\> Get-CimInstance -Query 'select Architecture, Level, AddressWidth from Win32_Processor'
|
Get-CimInstance -Query 'select Architecture, Level, AddressWidth from Win32_Processor'
|
|
DeviceID Name Caption MaxClockSpeed SocketDesignation Manufacturer
|
-------- ---- ------- ------------- ----------------- ------------
|
CPU0
|
CPU1
|
Note: running inside a container, inside a server 2016 vmpooler instance
select TotalPhysicalMemory from Win32_ComputerSystem
PS C:\> Get-CimInstance -Query 'Select TotalPhysicalMemory From Win32_ComputerSystem'
|
Get-CimInstance -Query 'Select TotalPhysicalMemory From Win32_ComputerSystem'
|
|
Name PrimaryOwner Domain TotalPhysica Model Manufacture
|
Name lMemory r
|
---- ------------ ------ ------------ ----- -----------
|
8F9C2B7B8E8C 4294057984
|
select FreePhysicalMemory from Win32_OperatingSystem
PS C:\> Get-CimInstance -Query 'Select FreePhysicalMemory From Win32_OperatingSystem'
|
Get-CimInstance -Query 'Select FreePhysicalMemory From Win32_OperatingSystem'
|
|
SystemDirectory Organization BuildNumber RegisteredUser SerialNumber Version
|
--------------- ------------ ----------- -------------- ------------ -------
|
I would expect there to be results for this one... maybe nothing given its in a container?
SELECT manufacturer, model FROM Win32_ComputerSystem
PS C:\> Get-CimInstance -Query 'SELECT manufacturer, model FROM Win32_ComputerSystem'
|
Get-CimInstance -Query 'SELECT manufacturer, model FROM Win32_ComputerSystem'
|
|
Name PrimaryOwner Domain TotalPhysica Model Manufacture
|
Name lMemory r
|
---- ------------ ------ ------------ ----- -----------
|
8F9C2B7B8E8C VMware7,1 VMware, ...
|
select * from Win32_Processor
PS C:\> Get-CimInstance -Query 'select * from Win32_Processor'
|
Get-CimInstance -Query 'select * from Win32_Processor'
|
|
DeviceID Name Caption
|
-------- ---- -------
|
CPU0 Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz Intel64 Family 6 Model 62...
|
CPU1 Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz Intel64 Family 6 Model 62...
|
select * from Win32_OperatingSystem
PS C:\> Get-CimInstance -Query 'select * from Win32_OperatingSystem'
|
Get-CimInstance -Query 'select * from Win32_OperatingSystem'
|
|
SystemDirectory Organization BuildNumber RegisteredUser SerialNumber Versio
|
n
|
--------------- ------------ ----------- -------------- ------------ ------
|
C:\Windows\system32 14393 10....
|
|