You need to start powershell in Windows, click on search and start typing Powershell

Here are several useful examples and we will display the output from a sample PC

 

Win32_BaseBoard

The Win32_BaseBoard WMI class represents the motherboard.

PS C:\Users\user> Get-WmiObject -class Win32_BaseBoard -computername $computer -namespace $namespace

Manufacturer : Micro-Star International Co., Ltd.
Model :
Name : Base Board
SerialNumber : J916559113
SKU :
Product : MPG X570 GAMING PLUS (MS-7C37)

Win32_BIOS

The Win32_BIOS WMI class represents the attributes of the computer system`s BIOS.

PS C:\Users\user> Get-WmiObject -class Win32_BIOS -computername $computer -namespace $namespace

SMBIOSBIOSVersion : A.30
Manufacturer : American Megatrends Inc.
Name : Default System BIOS
SerialNumber : To be filled by O.E.M.
Version : ALASKA – 1072009

Win32_ComputerSystem

The Win32_ComputerSystem WMI class represents a computer system

PS C:\Users\user> Get-WmiObject -class Win32_ComputerSystem -computername $computer -namespace $namespace

Domain : WORKGROUP
Manufacturer : Micro-Star International Co., Ltd.
Model : MS-7C37
Name : DESKTOP-UGL2N6Q
PrimaryOwnerName : user
TotalPhysicalMemory : 34308169728

 

Win32_DesktopMonitor

The Win32_DesktopMonitor WMI class represents the type of monitor or display device

PS C:\Users\user> Get-WmiObject -class Win32_DesktopMonitor -computername $computer -namespace $namespace

DeviceID : DesktopMonitor1
DisplayType :
MonitorManufacturer : (Standard monitor types)
Name : Generic PnP Monitor
ScreenHeight :
ScreenWidth :

 

Win32_DiskDrive

The Win32_DiskDrive WMI class represents a physical disk drive as seen by a computer running the Windows operating system

PS C:\Users\user> Get-WmiObject -class Win32_DiskDrive -computername $computer -namespace $namespace

Partitions : 1
DeviceID : \\.\PHYSICALDRIVE3
Model : Seagate Backup+ Hub BK SCSI Disk Device
Size : 8001560609280
Caption : Seagate Backup+ Hub BK SCSI Disk Device

Partitions : 4
DeviceID : \\.\PHYSICALDRIVE0
Model : WDC WDS100T2B0A-00SM50
Size : 1000202273280
Caption : WDC WDS100T2B0A-00SM50

 

Win32_LocalTime

Can be used to retrieve the date and time

PS C:\Users\user> Get-WmiObject -class Win32_LocalTime -computername $computer -namespace $namespace

__GENUS : 2
__CLASS : Win32_LocalTime
__SUPERCLASS : Win32_CurrentTime
__DYNASTY : Win32_CurrentTime
__RELPATH : Win32_LocalTime=@
__PROPERTY_COUNT : 10
__DERIVATION : {Win32_CurrentTime}
__SERVER : DESKTOP-UGL2N6Q
__NAMESPACE : root\CIMV2
__PATH : \\DESKTOP-UGL2N6Q\root\CIMV2:Win32_LocalTime=@
Day : 23
DayOfWeek : 0
Hour : 12
Milliseconds :
Minute : 40
Month : 1
Quarter : 1
Second : 6
WeekInMonth : 5
Year : 2022
PSComputerName : DESKTOP-UGL2N6Q

 

Win32_LogicalDisk

The Win32_LogicalDisk WMI class represents a data source that resolves to an actual local storage device

PS C:\Users\user> Get-WmiObject -class Win32_LogicalDisk -computername $computer -namespace $namespace

DeviceID : C:
DriveType : 3
ProviderName :
FreeSpace : 77731192832
Size : 422346682368
VolumeName :

DeviceID : D:
DriveType : 3
ProviderName :
FreeSpace : 156373340160
Size : 400085811200
VolumeName : Programming

 

Win32_OperatingSystem

The Win32_OperatingSystem WMI class represents an operating system installed on a Win32 computer system.

PS C:\Users\user> Get-WmiObject -class Win32_OperatingSystem -computername $computer -namespace $namespace

SystemDirectory : C:\WINDOWS\system32
Organization :
BuildNumber : 19042
RegisteredUser : user
SerialNumber : 00330-80131-27477-AA204
Version : 10.0.19042

 

Win32_Process

Lists details about all the processes on your PC

PS C:\Users\user> Get-WmiObject -class Win32_Process -computername $computer -namespace $namespace

Win32_Registry

The Win32_Registry WMI class represents the system registry

PS C:\Users\user> Get-WmiObject -class Win32_Registry -computername $computer -namespace $namespace

CurrentSize MaximumSize Name Caption
———– ———– —- ——-
276 4095 Microsoft Windows 10 Pro|C:\WINDOWS|\Device\Harddisk0\Partition2 Registry

 

Win32_Service

The Win32_Service WMI class represents a service on a Windows computer system.

PS C:\Users\user> Get-WmiObject -class Win32_Service -computername $computer -namespace $namespace

ExitCode : 1077
Name : AJRouter
ProcessId : 0
StartMode : Manual
State : Stopped
Status : OK

ExitCode : 1077
Name : ALG
ProcessId : 0
StartMode : Manual
State : Stopped
Status : OK

 

Win32_VideoController

The Win32_VideoController WMI class represents the capabilities and management capacity of the video controller

PS C:\Users\user> Get-WmiObject -class Win32_VideoController -computername $computer -namespace $namespace

__GENUS : 2
__CLASS : Win32_VideoController
__SUPERCLASS : CIM_PCVideoController
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : Win32_VideoController.DeviceID=”VideoController1″
__PROPERTY_COUNT : 59
__DERIVATION : {CIM_PCVideoController, CIM_VideoController, CIM_Controller, CIM_LogicalDevice…}
__SERVER : DESKTOP-UGL2N6Q
__NAMESPACE : root\CIMV2
__PATH : \\DESKTOP-UGL2N6Q\root\CIMV2:Win32_VideoController.DeviceID=”VideoController1″
AcceleratorCapabilities :
AdapterCompatibility : NVIDIA
AdapterDACType : Integrated RAMDAC
AdapterRAM : 4293918720
Availability : 3
CapabilityDescriptions :
Caption : NVIDIA GeForce GTX 1050 Ti

and many more