Skip to content

AUTechNet KB

Welcome to the AUTechNet KB

Menu
  • About
  • Privacy Policy

Category: Powershell

Get-PSDrive Used, Free and Total Capacity

By admin
|
May 19, 2020
| No Comments
| Powershell

Run the following in Power Shell to get a list of the used, free and total disk capacity on the Windows system. Invoke-Command -ComputerName ComputerName {Get-PSDrive | Where {$_.Free -gt 0} | Select -Property Name, @{Name=”Used”; Expression={[Math]::Round(($_.Used/1GB),2)}}, @{Name=”Free”; Expression={[Math]::Round(($_.Free/1GB),2)}}, @{Name=”Total”; Expression={[Math]::Round((($_.Free+$_.Used)/1GB),2)}} }

Read More »

Posted in Powershell

Categories

  • Church / House of Worship
  • General
  • Java
  • MySQL
  • Networking
  • Php
  • Powershell
  • Python
  • Software
  • Software Hacks

Recent Content

  • How to Setup playSMS on the Raspberry Pi
  • Configuring NUT UPS Monitor on TrueNas and Debian
  • Unifi and UNMS on the one Computer
  • Crontab for Backup Job Scheduling
  • Finding Drive Information in the Linux Terminal
  • Home
  • About
  • Home
  • Privacy Policy

Powered by WordPress. AwesomeOne theme by Flythemes