powershell - Get-mailboxdatabase | clean-mailboxdatabase - not on all databases -
we have few servers/databases , i'd write cleandb script runs on half of them. names want alter start exch-ms-01, 02, 03, 04. have 3 others not want include in clean.
get-mailboxdatabase -server exch-ms-* returns : there multiple exchange servers matching identity "exch-ms-*". please specify unique value.
dug around , found works.
get-mailboxserver | where-object {($_.name -like "exch-ms-*")} | get-mailboxdatabase | clean-mailboxdatabase
Comments
Post a Comment