Home   tech  

Get computer details like model, manufacturer, RAM, Hard Disk, CPU and GPU in windows 10

When you want to sell your laptop or computer, buyer will often ask below details.

Getting this information manually can be very boring and time consuming. To make your life easier, I have got the powershell script for you!! Just run below script in powershell in Windows 10 or 11 and you should get all above information.

$cpu = (Get-WmiObject -Class Win32_Processor).Caption
$cpuName = (Get-WmiObject -Class Win32_Processor).Name
$gpu = (Get-WmiObject -Class Win32_VideoController).Caption
$diskDrives = Get-WmiObject -Class Win32_DiskDrive
$computerSystem = Get-WmiObject -Class Win32_ComputerSystem

$output = "`r`n" +
          "Computer Manufacturer: $($computerSystem.Manufacturer)`r`n" +
          "Computer Model: $($computerSystem.Model)`r`n" +
          "CPU Caption: $cpu`r`n" +
		  "CPU Name: $cpuName`r`n" +
          "Video Controller Caption: $gpu`r`n"

foreach ($disk in $diskDrives) {
    $diskSizeGB = [math]::Round($disk.Size / 1GB)
    $output += "Disk Drive Caption: $($disk.Caption), Size: $diskSizeGB GB`r`n"
}

$ramModules = Get-WmiObject -Class Win32_PhysicalMemory
$totalRAM = ($ramModules | Measure-Object -Property Capacity -Sum).Sum / 1GB
$output += "Total RAM: $totalRAM GB`r`n"

Write-Output $output


Output will look something like below.

Computer Manufacturer: ASUSTeK COMPUTER INC.
Computer Model: X555LJ
CPU Caption: Intel64 Family 6 Model 61 Stepping 4
Video Controller Caption: Intel(R) HD Graphics 5500 NVIDIA GeForce 920M
Disk Drive Caption: KINGSTON SUV400S37480G, Size: 447 GB
Total RAM: 12 GB

Here SUV400S37480G is the model of disk drive which is a SSD drive. You can get that information on google.

I have other laptop and here is the output of it.

Computer Manufacturer: Dell Inc.
Computer Model: Latitude 3400
CPU Caption: Intel64 Family 6 Model 142 Stepping 12
Video Controller Caption: NVIDIA GeForce MX130 Intel(R) UHD Graphics 620
Disk Drive Caption: TOSHIBA KSG60ZMV256G M.2 2280 256GB, Size: 238 GB
Total RAM: 16 GB
Published on: Aug 02, 2023, 03:34 AM  
 

Comments

Add your comment