Skip to content

Commit

Permalink
add -Force
Browse files Browse the repository at this point in the history
  • Loading branch information
timmy-wright committed Nov 21, 2024
1 parent 73b541a commit be8dff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vhdbuilder/packer/configure-windows-vhd.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ function Enable-WindowsFixInPath {
$regPath=(Get-Item -Path $Path -ErrorAction Ignore)
if (!$regPath) {
Write-Log "Creating $Path"
New-Item -Path $Path
New-Item -Force -Path $Path
}
$currentValue=(Get-ItemProperty -Path $Path -Name $Name -ErrorAction Ignore)
if (![string]::IsNullOrEmpty($currentValue)) {
Expand Down

0 comments on commit be8dff8

Please sign in to comment.