Exchange get transport queues

Hi all

no issues getting the details i want with the below

Write-Output "EURXMBS03 QUEUE STATUS"
Get-MailboxDatabaseCopyStatus -Server eurxmbs03 |select mailboxserver, name, replayqueuelength, COPYqueuelength, status

MailboxServer : EURXMBS03
Name : eu_dag1_db1\EURXMBS03
ReplayQueueLength : 1
CopyQueueLength : 0
Status : Healthy

MailboxServer : EURXMBS03
Name : eu_dag1_db2\EURXMBS03
ReplayQueueLength : 1
CopyQueueLength : 1
Status : Healthy

MailboxServer : EURXMBS03
Name : eu_dag1_db3\EURXMBS03
ReplayQueueLength : 2
CopyQueueLength : 0
Status : Healthy

MailboxServer : EURXMBS03
Name : eu_dag1_db4\EURXMBS03
ReplayQueueLength : 1
CopyQueueLength : 0
Status : Healthy

MailboxServer : EURXMBS03
Name : eu_dag1_db6\EURXMBS03
ReplayQueueLength : 1
CopyQueueLength : 0
Status : Healthy

MailboxServer : EURXMBS03
Name : eu_dag1_db5\EURXMBS03
ReplayQueueLength : 0
CopyQueueLength : 62511077
Status : Seeding

however im after and IF any “copyqueuelength” = > 50 then output the above results to a file

one to many beers last night = zero concentration for today :slight_smile:

Just one where to the end. I hope i got it right. Im replying from phone :slight_smile:

Edit:
No that wasnt what you want but Add If .count -ge 1 do export-CSV.

Write-Output "EURXMBS03 QUEUE STATUS"
Get-MailboxDatabaseCopyStatus -Server eurxmbs03 |select mailboxserver, name, replayqueuelength, COPYqueuelength, status | where {$_.copyqueuelength -ge 50}

Thanks :slight_smile: