Quantcast
Viewing all articles
Browse latest Browse all 8719

Remove Database Script question

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


Viewing all articles
Browse latest Browse all 8719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>