PowerShell_Scripts/base/Get-FreeDiskSpace.ps1

1 line
151 B
PowerShell

Get-CimInstance -ClassName Win32_LogicalDisk | Select-Object -Property DeviceID,@{'Name' = 'FreeSpace (GB)'; Expression= { [int]($_.FreeSpace / 1GB) }}