Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:PS> Get-Volume
- DriveLetter FileSystemLabel FileSystem DriveType HealthStatus SizeRemaining Size
- ----------- --------------- ---------- --------- ------------ ------------- ----
- C NTFS Fixed Healthy 94.34 GB 237.96 GB
- Recovery NTFS Fixed Healthy 10.19 MB 300 MB
- C:PS> Get-WmiObject Win32_Volume | Format-Table DriveLetter,Capacity,FreeSpace
- DriveLetter Capacity FreeSpace
- ----------- -------- ---------
- C: 255505461248 101292863488
- 314568704 10682368
- Get-WmiObject Win32_logicaldisk -filter "driveType=4"
- PS C:> Get-PSDrive -PSProvider filesystem
- Name Used (GB) Free (GB) Provider Root
- ---- --------- --------- -------- ----
- C 48.92 195.13 FileSystem C:
- D 30.82 69.18 FileSystem D:
- E .12 121.49 FileSystem E:
- PS C:> Get-PSDrive -PSProvider filesystem | select Name, @{n= 'Used(GB)' ; e = {"{0:N2}" -f ($_.used/1GB)}}, @{n= 'Free
- (GB)' ; e = {"{0:N2}" -f ($_.Free/1GB)}}, @{n= 'Total(GB)' ; e = {"{0:N2}" -f (($_.used + $_.Free)/1GB)}} | ft -auto
- Name Used(GB) Free(GB) Total(GB)
- ---- -------- -------- ---------
- C 48.92 195.13 244.04
- D 30.82 69.18 100.00
- E 0.12 121.49 121.62
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement