Get-KeldorHardwareInfo
SYNOPSIS
Gets normalized hardware information.
SYNTAX
Local (Default)
Get-KeldorHardwareInfo [<CommonParameters>]
ComputerName
Get-KeldorHardwareInfo [-ComputerName] <String[]> [-Credential <PSCredential>]
[<CommonParameters>]
PSSession
Get-KeldorHardwareInfo -PSSession <PSSession[]> [<CommonParameters>]
DESCRIPTION
Returns physical or virtual hardware identity, processor capacity, memory capacity, firmware, and evidence-based virtualization information for Windows, Linux, and macOS.
EXAMPLES
EXAMPLE 1
Get-KeldorHardwareInfo | Select-Object Manufacturer, Model, SerialNumber
Gets the local manufacturer, model, and serial number.
EXAMPLE 2
'server01', 'server02' | Get-KeldorHardwareInfo | Where-Object IsVirtualMachine
Gets hardware information from configured remoting targets and selects identified virtual machines.
EXAMPLE 3
Get-PSSession | Get-KeldorHardwareInfo | ConvertTo-Json -Depth 3
Reuses sessions and serializes hardware inventory as JSON.
PARAMETERS
-ComputerName
Specifies computers reachable through configured PowerShell remoting. Keldor must be installed on each target.
Type: String[]
Parameter Sets: ComputerName
Aliases: HostName, DnsHostName
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-PSSession
Specifies existing PowerShell sessions to reuse.
Type: PSSession[]
Parameter Sets: PSSession
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Credential
Specifies a credential for ComputerName remoting.
Type: PSCredential
Parameter Sets: ComputerName
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.String and System.Management.Automation.Runspaces.PSSession.
OUTPUTS
Keldor.HardwareInfo
NOTES
IsVirtualMachine is null when available evidence cannot distinguish physical and virtual hardware.
ALIASES
None.
PLATFORM APPLICABILITY
Windows, macOS, and Linux.
POWERSHELL COMPATIBILITY
See PowerShell compatibility for the supported runtime policy. PowerShell 7.6 LTS is preferred.
RELATED LINKS
https://docs.keldor.dev/powershell/keldor/Get-KeldorHardwareInfo