I got a bit bored of command line/command-let Exchange 2007 SCC failovers on Server 2008 today and always find the GUI too much faff, so I made batch files that provides some feedback and prompts along the way. Hope people find this useful.
Create PowerShell PS1 files called ‘E12CMS1N1-Ex-Failover.ps1’ and ‘E12CMS1N2-Ex-Failover.ps1’ .
move-ClusteredMailboxServer -Identity 'E12CMS1' -MoveComment 'Failover' -TargetMachine 'E12CMS1N1'
and,
move-ClusteredMailboxServer -Identity 'E12CMS1' -MoveComment 'Failover' -TargetMachine 'E12CMS1N2'
Then create batch files called ‘E12CMS1N1-Ex-Failover.bat’ and ‘E12CMS1N2-Ex-Failover.bat’
cluster group
pause
cluster . group "available storage" /move:E12CMS1N1
cluster . group "cluster group" /move:E12CMS1N1
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" -command ". 'C:\EXAdminScripts\E12CMS1N1-Ex-Failover.ps1'"
cluster group
pause
and,
cluster group
pause
cluster . group "available storage" /move:E12CMS1N2
cluster . group "cluster group" /move:E12CMS1N2
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" -command ". 'D:\EXAdminScripts\E12CMS1N2-Ex-Failover.ps1'"
cluster group
pause
Run the corresponding file to failover to that node, maybe even place a shortcut on the admin desktops. I especially like this because it reports the cluster groups owner before proceeding and and at the end.
I have thought about going one step further by setting SCOM maintenance mode on and off at the start and end of the script, setting Yes/No options for each step, having editable comment sections and listing the node names for selection rather than having 2 scripts. Oh well, a job for another day maybe when I’m not so busy. :o)
Daniel