Script to get LUN with free space on Windows server

 Get-PhysicalDisk | Select-Object FriendlyName, @{Name="Capacity"; Expression={$_.Size/1GB}}, @{Name="FreeSpace"; Expression={($_.Size - $_.AllocatedSize)/1GB}}


Get-WmiObject Win32_logicaldisk | Select-Object DeviceID, FreeSpace

Get-Disk | Select Manufacturer, SerialNumber, UniqueId

Comments

Popular posts from this blog

altiris software key

Troubleshooting Netlogon Error Codes

Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe)