Tag: Powershell Script

  • Powershell Script to get total and free disk space

    You can execute the below powershell script to get total & free disk space which includes the mount drive as well.

    Get-WmiObject -class Win32_volume -filter "drivetype = 3" | select name,
     @{Name="Capacity";Expression={$_.capacity / 1GB}},@{Name="freespace";Expression
    ={$_.freespace / 1GB}}