2010-07-16 08:29 AM
When I use the Invoke-SnapmirrorBreak cmdlet, I am prompted to enter Y, A, N, L, S, or ? to confirm or reject this operation. I don't want to be prompted, I simply want it to perform the operation. I've tried using the -Confirm parameter but I get the same results. If I respond to the prompts, it performs the desired action. However, I am creating scripts that will be run as part of an automated process with no user available to provide input.
Solved! See The Solution
3 REPLIES 3
2010-07-16 10:06 AM
You can also pass -Confirm:$false to any cmdlet to disable prompts only for its invocation. PowerShell's default value of $ConfirmPreference is "High". Most confirmations in the Toolkit are "Low" or "Medium", primarily reserving "High" for those that impact data such as removing LUNs, Volumes, etc.