diff --git a/source/DSCResources/DSC_VhdFileDirectory/DSC_VhdFileDirectory.psm1 b/source/DSCResources/DSC_VhdFileDirectory/DSC_VhdFileDirectory.psm1 index 056fb20..52366ae 100644 --- a/source/DSCResources/DSC_VhdFileDirectory/DSC_VhdFileDirectory.psm1 +++ b/source/DSCResources/DSC_VhdFileDirectory/DSC_VhdFileDirectory.psm1 @@ -545,11 +545,11 @@ function SetVHDFile { if ($type -eq 'Directory') { - New-Item -Path $destinationPath -ItemType $type + New-Item -Path $destinationPath -ItemType $type -Force:$force } else { - New-Item -Path $destinationPath -ItemType $type + New-Item -Path $destinationPath -ItemType $type -Force:$force $content | Out-File $destinationPath }