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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -