Windows System Information Summary
Returns computer name, manufacturer, model, serial number, OS version, CPU and RAM in one output.
- Windows18
- macOS5
- Linux5
- Network3
- Disk and storage4
- Inventory4
- Security9
- Updates4
- Maintenance4
Script
$cs = Get-CimInstance Win32_ComputerSystem
$os = Get-CimInstance Win32_OperatingSystem
$bio = Get-CimInstance Win32_BIOS
$cpu = Get-CimInstance Win32_Processor | Select-Object -First 1
[pscustomobject]@{
ComputerName = $env:COMPUTERNAME
Manufacturer = $cs.Manufacturer
Model = $cs.Model
Serial = $bio.SerialNumber
OS = "$($os.Caption) $($os.Version)"
CPU = $cpu.Name
RamGB = [math]::Round($cs.TotalPhysicalMemory / 1GB, 1)
} | Format-ListRun it on every device with Moftgate
- 01
Add the script
In the Moftgate console, open Scripts > New script and paste the code.
- 02
Select the OS
Select Windows as the target operating system.
- 03
Test it
Run it on one test device first and read the output.
- 04
Roll out
Send it to all targets by group, profile or tag. Each device result is recorded separately.
These may help too
List Installed Software on Windows
Lists installed programs with name, version and publisher from the 64-bit and 32-bit uninstall keys. It does not use Win32_Product, which can trigger MSI repairs.
Windows · PowerShellFind Installed AI Apps on Windows
Searches machine and user uninstall keys for AI apps such as ChatGPT, Claude, Copilot, Cursor, Perplexity, Ollama and LM Studio. A first step for a Shadow AI inventory.
Windows · PowerShellClear the DNS Cache on Windows
Empties the DNS client cache. Use it when a site resolves to the wrong IP or a DNS record has just changed.
Manage scripts from one console
Target selection, a confirmation step, per-device output and an audit log. The first 200 endpoints are free for a year.