From ee2acca20cd2f6f1d19ab6359b5d375cebda3c1d Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Sat, 6 Apr 2019 23:31:26 -0400 Subject: [PATCH] Add mandatory params --- ZertoApiWrapper/Public/Invoke-ZertoMove.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ZertoApiWrapper/Public/Invoke-ZertoMove.ps1 b/ZertoApiWrapper/Public/Invoke-ZertoMove.ps1 index 2251def..66d61f9 100644 --- a/ZertoApiWrapper/Public/Invoke-ZertoMove.ps1 +++ b/ZertoApiWrapper/Public/Invoke-ZertoMove.ps1 @@ -26,12 +26,14 @@ function Invoke-ZertoMove { [switch]$forceShutdown, [Parameter( ParameterSetName = "disableReverseProtection", - HelpMessage = "Do not enable reverse protection. The VPG definition is kept with the status Needs Configuration and the reverse settings in the VPG definition are not set." + HelpMessage = "Do not enable reverse protection. The VPG definition is kept with the status Needs Configuration and the reverse settings in the VPG definition are not set.", + Mandatory = $true )] [switch]$disableReverseProtection, [Parameter( ParameterSetName = "keepSourceVms", - HelpMessage = "Prevent the protected virtual machines from being deleted in the protected site. Using this setting disables reverse protection." + HelpMessage = "Prevent the protected virtual machines from being deleted in the protected site. Using this setting disables reverse protection.", + Mandatory = $true )] [switch]$keepSourceVms, [Parameter(