Computeractive

PowerShell cmdlets, Computeractive, Issue 744

Aug 20th, 2026 (edited)
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | Software | 0 0
  1. 1. PC serial number
  2. WMIC: wmic bios get serialnumber
  3. CMDLET: (Get-CimInstance Win32_BIOS).SerialNumber
  4.  
  5. 2. PC make and model
  6. WMIC: wmic computersystem get manufacturer,model
  7. CMDLET: Get-CimInstance Win32_ComputerSystem | Select Manufacturer,Model
  8.  
  9. 3. Processor name
  10. WMIC: wmic cpu get name
  11. CMDLET: (Get-CimInstance Win32_Processor).Name
  12.  
  13. 4. Total installed RAM
  14. WMIC: wmic computersystem get totalphysicalmemory
  15. CMDLET: (Get-CimInstance Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum).Sum
  16.  
  17. 5. Individual RAM modules
  18. WMIC: wmic memorychip get capacity
  19. CMDLET: (Get-CimInstance Win32_PhysicalMemory).Capacity
  20.  
  21. 6. Windows version
  22. WMIC: wmic os get caption,version
  23. CMDLET: Get-CimInstance Win32_OperatingSystem | Select Caption,Version
  24.  
  25. 7. BIOS version
  26. WMIC: wmic bios get smbiosbiosversion
  27. CMDLET: (Get-CimInstance Win32_BIOS).SMBIOSBIOSVersion
  28.  
  29. 8. Physical drives
  30. WMIC: wmic diskdrive get model,size
  31. CMDLET: Get-CimInstance Win32_DiskDrive | Select Model,Size
  32.  
  33. 9. Motherboard
  34. WMIC: wmic baseboard get manufacturer,product
  35. CMDLET: Get-CimInstance Win32_BaseBoard | Select Manufacturer,Product
  36.  
  37. 10. MAC addresses
  38. WMIC: wmic nic get macaddress
  39. CMDLET: Get-CimInstance Win32_NetworkAdapterConfiguration | Where MACAddress | Select Description,MACAddress
Advertisement
Add Comment
Please, Sign In to add comment