diff --git a/windows/win_regedit.ps1 b/windows/win_regedit.ps1 index 1b5c9cf9918..c98c79ce8ef 100644 --- a/windows/win_regedit.ps1 +++ b/windows/win_regedit.ps1 @@ -63,9 +63,9 @@ Function Test-RegistryValueData { Function Compare-RegistryData { Param ( [parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()]$ReferenceData, + [AllowEmptyString()]$ReferenceData, [parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()]$DifferenceData + [AllowEmptyString()]$DifferenceData ) $refType = $ReferenceData.GetType().Name