Search notes:

CIM Class Win32_ComputerSystem

The class hierarchy of win32_computerSystem is:
cim-classHierarchy (get-cimClass win32_computerSystem)
ROOT/Cimv2 CIM_ManagedSystemElement
ROOT/cimv2 CIM_LogicalElement
ROOT/Cimv2 CIM_System
ROOT/Cimv2 CIM_ComputerSystem
ROOT/Cimv2 CIM_UnitaryComputerSystem
ROOT/Cimv2 Win32_ComputerSystem

Total physical memory

Determine the total amount of physical memory on the command line:
(get-cimInstance Win32_ComputerSystem).totalPhysicalMemory / 1gb

Detect if a hypervisor is present

(get-cimInstance Win32_ComputerSystem).hypervisorPresent
If this command returns True, it does not necessarily mean that the command was executed within a virtualized machine.

Index