こんにちは、今日はPowerShellでボリューム情報を取得するGet-Volumeコマンドレットの使い方についてまとめていきます。
確認環境
PSVersion 5.1.18362.1110
Volumeコマンドレットの使い方
1 2 3 4 5 6 7 | PS C:\Users\santerabyte> Get-Volume DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining Size ----------- ------------ -------------- --------- ------------ ----------------- ------------- ---- 回復 NTFS Fixed Healthy OK XXX MB XXX MB C NTFS Fixed Healthy OK XXX GB XXX GB |
リンク
Get-Volume (Storage) | Microsoft Docs
https://docs.microsoft.com/en-us/powershell/module/storage/get-volume?view=win10-ps