I have a situation where based database, I want to have the DB copies deleted and then the DB itself. Will my logic work here?
If (($database = "DB01") -or ($database = "DB02") -or ($database = "DB03") -or ($database = "DB04")) { Remove-mailboxdatabasecopy -identity $database\venmail01 -Confirm:$false Remove-mailboxdatabasecopy -identity $database\wndmail02 -Confirm:$false Remove-mailboxdatabase -identity $database\wndmail01 -Confirm:$false }
I'm concerned around the $database\SERVER - will I need a join statement here or will this work?
Brandon Carder