$strExportFile = "C:\Temp\AvailableTapes.csv" Get-BEMedia | Select-Object Name,OverwriteProtectedUntilDate,AllocatedDate | Sort-Object OverwriteProtectedUntilDate | Export-Csv "$strExportFile" -NoTypeInformatio