Running the following commands will help you to gather system information using WMI and Registry query. The Sample script contains all commands explained in this file.
Running the following commands will help you to gather system information using WMI.
Get-WmiObject Win32_BaseBoard | Format-List *
Output is for example:
Product: CB7476
Version: G2
You can get a brief overview of the installed updates in the command line via the following command:
Get-WmiObject Win32_QuickFixEngineering | Select-Object HotFixID, Description, InstalledOn
to get a complete overview of all updates and their information (e.g. description, caption, etc.).
(Get-WmiObject Win32_OperatingSystem).BuildNumber
Output is:
26100
With the help of PowerShell, information about the image can be read out easily. For example, all keys and values under a registry key can be read out as follows:
Get-ItemProperty [-Path] [-Name]
And the value of a specific key as follows:
Get-ItemPropertyValue [-Path] [-Name]
Image and device information in Beckhoff Images can be found at:
HKLM\SOFTWARE\Beckhoff\IPC
Get image:
Get-ItemPropertyValue 'HKLM:\SOFTWARE\Beckhoff\IPC' 'Image'
Output is for example:
IN-1211-0712-11-1
Get version:
Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\Beckhoff\IPC' 'Version'
Output is for example:
2025-12-00051
Get edition:
Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\Beckhoff\IPC' 'EditionId'
Output is for example:
2024 LTSC
Get driver package:
Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\Beckhoff\IPC' 'DriverPackage'
Output is for example:
8.11.6.0
Get baseboard:
Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\Beckhoff\IPC' 'Platform'
Output is for example:
CB7476
Get computer name:
Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\Beckhoff\IPC' 'LastComputerName'
Output is for example:
CP-XXXXXX
Get MAC:
Get-WmiObject win32_networkadapterconfiguration | select description, macaddress
Output is for example:
Intel(R) Ethernet Controller I226-IT 00:01:05:XX:XX:XX
Get Update Build Revision:
Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' 'UBR'
Output is for example:
4351