Get-FullDiskInfo Consolidates Physical Disk, Partition and Volume Information into One easy to Read and manipulate object.
- 2/25/2021 With help from ihaxr on reddit, added functionality to distinguish raid groups/storage pools from normal disks, and combine them into a single object
Here is a list of all of the places Get-FullDiskInfo Grabs it's data from:
- Get-WmiObject Win32_DiskDrive
- Get-WmiObject Win32_DiskPartition
- Get-WmiObject Win32_DiskDriveToDiskPartition
- Get-PhysicalDisk
- Get-Volume
Here's a link to the latest Releases of the Module. or Here's a One-Liner you can use to pull in the latest version of the module temporarily in your current session.
New-Module -Name Get-FullDiskInfo -ScriptBlock ([Scriptblock]::Create((New-Object System.Net.WebClient).DownloadString("https://raw.githubusercontent.com/AlecMcCutcheon/Get-FullDiskInfo/main/Get-FullDiskInfo.psm1")))
You will have to do Get-FullDiskInfo, or Get-FDI to actually use it after you execute the one liner
Currently working on making it into a PowerShell module.. Plz lmk what you would like me to add or feedback on the project.
Get-FullDiskInfo
Get-FDI
(Get-FullDiskInfo) | Where-Object "Volume (Letter, Name, FS)" -like "*C:*" | Format-List
(Get-FullDiskInfo) | Select -Property "Disk & Partition #", "Volume (Letter, Name, FS)", "Free Space(GB,%)" | Where-Object "Volume (Letter, Name, FS)" -like "*C:*" | Format-List
(Get-FullDiskInfo)."Disk & Partition #"
(Get-FullDiskInfo)."Volume (Letter, Name, FS)"
"DiskType"
"Disk(Model,MediaType)"
"Disk & Partition #"
"Volume (Letter, Name, FS)"
"Drive Compression"
"Health & Op. Status"
"Total Disk Size(Dynamic:GB|PB|MB|etc.)"
"Used Space(Dynamic:GB|PB|MB|etc.,%)"
"Free Space(Dynamic:GB|PB|MB|etc.,%)"
"Windows Directory Vol."
"TotalTempSize(Dynamic:GB|PB|MB|etc.)"
Get-FullDiskInfo verbose
Get-FDI verbose
Get-FullDiskInfo verbose | Where-Object VolLetter -eq "C:" | Format-List
Get-FullDiskInfo verbose | Where-Object DiskandPartitionNumber -like "*Partition #1*" | Format-List
Get-FullDiskInfo verbose | Select -Property VolName, TotalVolSize, UsedVolSpacePercentage,FreeVolSpacePercentage | Format-List
(Get-FullDiskInfo verbose | Where-Object VolLetter -eq "C:").FreeVolSpacePercentage
(Get-FullDiskInfo verbose | Where-Object VolLetter -eq "C:").MediaType
"DiskType"
DiskModel
MediaType
DiskStyle
PartitionStyle
DiskandPartitionNumber
VolLetter
VolName
VolFileSystem
VolCompression
VolHealthStatus
VolOperationalStatus
TotalVolSize
UsedVolSpace
UsedVolSpacePercentage
FreeVolSpace
FreeVolSpacePercentage
WindowsDirectoryVol
TotalTempSize
Seems pretty self explanatory but essentially it cleans the temp files from the temp folders that aren't currently in use in windows
- Requires Admin permission
CleanTemp
Creater: Alec McCutcheon, Also Big thx to ihaxr on Reddit: https://www.reddit.com/user/ihaxr/ for the help :)
- Created Get-FullDiskInfo to make eveyones life a little bit easier.