Giter Club home page Giter Club logo

get-fulldiskinfo's Introduction

Get-FullDiskInfo V.3

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.

alt text

Running Get-FullDiskInfo in Normal mode

Get-FullDiskInfo

Get-FDI

Some ways to Use with Get-FullDiskInfo in Normal mode

(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)" 

-Property Names in Normal Mode

"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.)"

Running Get-FullDiskInfo in Verbose mode

Get-FullDiskInfo verbose

Get-FDI verbose

Some ways to Use with Get-FullDiskInfo in verbose mode

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 

-Property Names in Verbose Mode

"DiskType"
DiskModel
MediaType
DiskStyle
PartitionStyle
DiskandPartitionNumber
VolLetter
VolName
VolFileSystem
VolCompression
VolHealthStatus
VolOperationalStatus
TotalVolSize
UsedVolSpace
UsedVolSpacePercentage
FreeVolSpace
FreeVolSpacePercentage
WindowsDirectoryVol
TotalTempSize

How to use the Extra CleanTemp Function

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

Credits

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.

get-fulldiskinfo's People

Contributors

alecmccutcheon avatar

Watchers

 avatar

Forkers

kfirgerman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.