en-US/about_HWInformation.help.txt

TOPIC
    about_HWInformation
 
SHORT DESCRIPTION
    Collect a snapshot of the local Windows computer's CPU, RAM, and GPUs.
 
LONG DESCRIPTION
    HWInformation runs in 64-bit Windows PowerShell 5.1. Install GPUInfo
    1.3.2.0 or later in a directory on PSModulePath. HWInformation reads CPU
    and RAM via local CIM queries and delegates adapter discovery to GPUInfo.
 
    Get-HWInfo and New-HWInfo collect a fresh HWInfo object on each call.
    Keep that object for a report or to inspect several properties together.
    RAMBytes is the physical RAM total in bytes. 'Memory (Gb)' is a rounded
    display value and retains its historical property name. GPUs is a
    collection that can have zero, one, or several entries.
 
CONSOLE VIEW
    PowerShell uses this table in the console. To select it explicitly, run
 
        $machine = Get-HWInfo
        $machine | Format-Table -View HWInformation.Snapshot
 
    The table shows the processor, cores, threads, rounded RAM in GiB,
    memory modules, and GPU count. Read RAMBytes for the exact RAM total
    and GPUs for the adapter records.
 
    Use the same snapshot to list the cards individually.
 
        $machine.GPUs | Select-Object Name, Vendor, MemoryBytes
 
RELEASE HISTORY
    Open the English release changelog included with the module.
 
        Import-Module HWInformation
        Get-Content -LiteralPath (Join-Path (Get-Module HWInformation).ModuleBase 'CHANGELOG.md')
 
EXAMPLES
    EXAMPLE 1 - Inspect the processor, installed memory, and GPU driver
 
        Import-Module HWInformation
        $machine = Get-HWInfo
        $machine | Select-Object CPU, CPUCores, CPUThreads, 'Memory (Gb)', RamSticks
        $machine.GPUs | Format-Table Name, Vendor, DriverVersion, MemoryBytes
 
    CPUThreads counts logical processors. RamSticks counts the memory
    modules Windows exposes. GPU MemoryBytes describes dedicated graphics
    memory and RAMBytes describes system memory.
 
    EXAMPLE 2 - Save a short inventory as CSV
 
        $machine = Get-HWInfo
        $machine | Select-Object CPU, CPUCores, CPUThreads, RAMBytes, RamSticks |
            Export-Csv -LiteralPath '.\hardware.csv' -NoTypeInformation -Encoding UTF8
 
    Export the adapter collection separately if you need one row per GPU.
 
    EXAMPLE 3 - Query GPUInfo directly
 
        Import-Module GPUInfo
        GPUInfo\Get-GPU | Select-Object Name, Vendor, CapabilitySource
        Get-Help GPUInfo\Update-GPUsData -Examples
 
    GPUInfo supplies the adapters in a HWInfo snapshot. Use it directly
    to refresh the catalog or inspect adapter routing.
 
TROUBLESHOOTING
    If import reports a missing dependency, run
    Get-Module -ListAvailable GPUInfo and check its version and path.
    If Windows data is unexpectedly blank, compare with Get-CimInstance
    Win32_Processor and Get-CimInstance CIM_PhysicalMemory. The snapshot
    reflects the information Windows exposes to this session.
 
    Put "using module HWInformation" at the top of scripts that use [HWInfo].
    Command-only scripts can use Import-Module HWInformation.
 
SEE ALSO
    Get-Help Get-HWInfo -Full
    Get-Help New-HWInfo -Examples
    Get-Help about_GPUInfo
    Docs\PowerShell-Commands.md
    Docs\Class-Manual.md