#Exchange2010 #MsExchange #Powershell
Hello every Happy New Year and all that .. long time to talk.
Wanted to share this. Basically had a Cisco UCS Blade failure today, where it took 2 nodes of a 3 node Exchange 2010 dag out.
Its been a fun day! NOT!
Anyway, I knocked this script up to monitor the database copy status when we put everything back.
PARAM([String]$Server = (HOSTNAME), [int]$time = 30) Write-Host "Server:.."$Server Write-Host "Timer:..."$time $position = $host.ui.rawui.cursorposition $position.y = $position.y+4 while($True){ Get-MailboxDatabaseCopyStatus -Server $Server $endpos = $host.ui.rawui.cursorposition for($i=1;$i-le $time;$i++){write-host "." -nonewline -f Yellow;sleep 1} $host.ui.rawui.cursorposition=$endpos; Write-Host (" "*$time) $host.ui.rawui.cursorposition=$position; }