diff --git a/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 b/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 index 72224e6..df3035e 100644 --- a/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 +++ b/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 @@ -6,7 +6,9 @@ function Export-ZertoVpg { HelpMessage = "Location where to dump the resulting JSON files containing the VPG Settings", Mandatory = $true )] - [string]$outputFolder, + [ValidateNotNullOrEmpty()] + [Alias("outputFolder")] + [string]$outputPath, [parameter( HelpMessage = "Name(s) of the VPG(s) to be exported", ParameterSetName = "namedVpgs" @@ -31,7 +33,7 @@ function Export-ZertoVpg { foreach ($name in $vpgName) { $vpgSettingsIdentifier = New-ZertoVpgSettingsIdentifier -vpgIdentifier $(Get-ZertoVpg -name $name).vpgIdentifier $vpgSettings = Get-ZertoVpgSetting -vpgSettingsIdentifier $vpgSettingsIdentifier - $filePath = "{0}\{1}.json" -f $outputFolder, $name + $filePath = "{0}\{1}.json" -f $outputPath, $name $vpgSettings | Convertto-Json -depth 10 | Out-File -FilePath $filePath } }