PowerShell -whatif and Exchange 2007

Soldato
Joined
5 Apr 2006
Posts
4,103
Location
Wakefield
Hi Guys,

I can't seem to find this anywhere online so was wonding if anyone can tell me if i can use -whatif to simulate a failover of a cluster using the following PowerShell commands

move-clusteredmailboxserver -identity:<clustername> -targetmachine:<targetnode> -movecomment:"Test PowerShell Failover Script" -whatif

I don't want to have the cluster failover during the day just in case something breaks and service goes down.
 
In my experience, if the get-help command says it's a supported switch it will work.

type 'get-help move-clusteredmailboxserver -detailed' into powershell, if it returns saying whatif is supported then i'm 95% sure it will not failover the cluster for you :P

*recommend doing this in a lab if you have one first of all though, or out of hours just to be safe!*
 
Suave cheers, forgot about get-help never thought to check. Looks like it should work.

Will probably run it early morning anyway just to be safe but at least we know it will work then.
 
Back
Top Bottom