Search




hits.Login
purpleender
41772
Newmarket
Bumder
Jock
Gonna get High till the day I die! Reality is an illusion that occurs due to lack of resin.
PowerShell - Query Hard Drive Information
Microsoft PowerShell - Query Hard Drive Information |
![]() |
To query the Computers Hard Drive Information:
#Return the Models of all Hard Drives in the Current PC
Get-WmiObject -Class Win32_DiskDrive | Select Model | Format-List
#Return the Drive Assignments for all Hard Drives in the Current PC
Get-WmiObject -Class Win32_DiskDrive | Select Name | Format-List
#Return the Partition numbers for all Hard Drives in the Current PC
Get-WmiObject -Class Win32_DiskDrive | Select Partitions | Format-List
#Return in bytes the size of all Hard Drives in the Current PC
Get-WmiObject -Class Win32_DiskDrive | Select Size | Format-List



