Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

List Lowest from list

$
0
0
Get-MailboxDatabase * | Where-Object {$_.AdminDisplayName -like "*Alpha*" -or $_.AdminDisplayName -like "*Beta*" -or $_.AdminDisplayName -like "*Charlie*" -or $_.AdminDisplayName -like "*Delta*"} | Get-MailboxDatabase -Status | select Name,Databasesize 

Name DatabaseSize


Beta Database 10 98.88 GB (106,176,774,144 bytes)

Alpha Database 23 904.1 MB (947,978,240 bytes)

Alpha Database 02 90.01 GB (96,647,315,456 bytes)

Alpha Database 15 89.01 GB (95,574,097,920 bytes)

Alpha Database 07 82.66 GB (88,758,091,776 bytes)

Alpha Database 04 8.063 MB (8,454,144 bytes)

Alpha Database 17 8.063 MB (8,454,144 bytes)

Beta Database 17 8.063 MB (8,454,144 bytes)

Beta Database 18 8.063 MB (8,454,144 bytes)

Beta Database 19 8.063 MB (8,454,144 bytes)

Beta Database 14 8.063 MB (8,454,144 bytes)

Alpha Database 09 8.063 MB (8,454,144 bytes)

Beta Database 20 8.063 MB (8,454,144 bytes)

Charlie Database 15 8.063 MB (8,454,144 bytes)

Delta Database 02 8.063 MB (8,454,144 bytes)

Charlie Database 13 78.89 GB (84,702,461,952 bytes)

Beta Database 05 78.39 GB (84,167,163,904 bytes)

Alpha Database 19 78.01 GB (83,761,364,992 bytes)

Beta Database 02 77.78 GB (83,510,886,400 bytes)

Alpha Database 01 77.64 GB (83,361,333,248 bytes)

The name colum has “Alpha Database 01” for example for the Name and “77.64 GB (83,361,333,248 bytes)” for the Size

I am trying to find the lowest of the whole list

Any ideas

Thanks

submitted by /u/wdz
[link] [comments]

The post List Lowest from list appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles