From 7d9b73ec5ab987f2b16da67a3a2abb25f9792443 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 22 Apr 2016 18:37:31 +0100 Subject: [PATCH] fix problem where you couldn't compare empty strings in win_regedit following my previous change --- windows/win_regedit.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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