Search notes:

PowerShell cmdLet Get-Volume

get-volume returns an instance of a Microsoft.Management.Infrastructure.CimInstance object.

Determine used space in a volume

The following demonstrates how the size and occupied space of a volumen (here: C:) can be calculated;
PS> $cDrv = get-volume c
"Size: $([math]::Round($cDrv.size / 1mb)) Mb`nFree: $([math]::Round($cDrv.sizeRemaining / 1mb)) Mb ($([math]::Round(100 / $cDrv.size * $cDrv.sizeRemaining, 1))%)"

See also

Powershell command noun: volume

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758209551, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/command-inventory/noun/volume/get(43): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78