The following code snippet is from Test-SecretVault.ps1
if ($AdditionalParameters.Verbose) {
$VerbosePreference = $true
}
I think the proper value would be 'Continue' rather than $true, right?
Interactively I get the following>
PS> $VerbosePreference = $true
MetadataError: Cannot convert value "True" to type "System.Management.Automation.ActionPreference". Error: "Invalid cast from 'System.Boolean' to 'System.Management.Automation.ActionPreference'."
The following code snippet is from Test-SecretVault.ps1
I think the proper value would be 'Continue' rather than $true, right?
Interactively I get the following>
PS>
$VerbosePreference = $true
MetadataError: Cannot convert value "True" to type "System.Management.Automation.ActionPreference". Error: "Invalid cast from 'System.Boolean' to 'System.Management.Automation.ActionPreference'."