filmov
tv
Disk utilization report using powershell
Показать описание
In this video, we are going to take the disk utilization report using powershell.
1. Open Windows Powershell as Administrator.
2. Type the below commands.
Get-WmiObject -Class Win32_LogicalDisk `
| Select-Object PSComputerName, DeviceID,
@{Name="Size";Expression={ "{0:N1}" -f ($_.Size/1GB)}},
@{Name="UsedSpace";Expression={ '{0:N1}' -f (($_.Size/1GB) - ($_.FreeSpace/1GB))}},
@{Name="FreeSpace";Expression={ "{0:N1}" -f ($_.FreeSpace/1GB)}},
@{Name="Percent";Expression={ "{0:P0}" -f ($_.FreeSpace/$_.Size)}} `
1. Open Windows Powershell as Administrator.
2. Type the below commands.
Get-WmiObject -Class Win32_LogicalDisk `
| Select-Object PSComputerName, DeviceID,
@{Name="Size";Expression={ "{0:N1}" -f ($_.Size/1GB)}},
@{Name="UsedSpace";Expression={ '{0:N1}' -f (($_.Size/1GB) - ($_.FreeSpace/1GB))}},
@{Name="FreeSpace";Expression={ "{0:N1}" -f ($_.FreeSpace/1GB)}},
@{Name="Percent";Expression={ "{0:P0}" -f ($_.FreeSpace/$_.Size)}} `