ARM2009
asked on
Sorting data in Exchange powershell to extract the largest value
i have the following script to get the DB's in a DAG
Get-MailboxDatabase -identity EXCHdb* -Status | select ServerName,Name,DatabaseSi ze,Availab leNewMailb oxSpace | Sort-Object AvailableNewMailboxSpace
result is sorted by AvailableNewMailboxSpace ....
need to extract the largest value and grab the name of DB
how do i pipe that ?
Get-MailboxDatabase -identity EXCHdb* -Status | select ServerName,Name,DatabaseSi
result is sorted by AvailableNewMailboxSpace ....
need to extract the largest value and grab the name of DB
how do i pipe that ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
exactly what i was looking for!!! thanks
Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSi