From 3fa53349a593baedd7b0742c465c8b40e8fc4b11 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Sun, 31 Mar 2019 21:51:21 -0400 Subject: [PATCH] Set Parameters to Mandatory --- ZertoApiWrapper/Public/Export-ZertoVpg.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 b/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 index df3035e..f44a48a 100644 --- a/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 +++ b/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 @@ -11,14 +11,16 @@ function Export-ZertoVpg { [string]$outputPath, [parameter( HelpMessage = "Name(s) of the VPG(s) to be exported", - ParameterSetName = "namedVpgs" + ParameterSetName = "namedVpgs", + Mandatory = $true )] [string[]]$vpgName, [parameter( HelpMessage = "Export all VPGs at this site", ParameterSetName = "allVpgs", valuefrompipeline = $true, - ValueFromPipelineByPropertyName = $true + ValueFromPipelineByPropertyName = $true, + Mandatory = $true )] [switch]$allVpgs )