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

Troubleshooting Netlogon Error Codes

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

Troubleshooting AD Active Directory Replication Error 8456 or 8457: "The source | destination server is currently rejecting replication requests"