Skip to content

Commit

Permalink
Adding force in case it already exists (#2282)
Browse files Browse the repository at this point in the history
Adding force in case it already exists
  • Loading branch information
bkatyl authored Mar 5, 2024
1 parent 24e07e8 commit 086b427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daisy_workflows/image_build/windows/post_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ function Change-InstanceProperties {
if (-not (Test-Path $vioscsi_path)) {
New-Item -Path $vioscsi_path
}
New-ItemProperty -Path $vioscsi_path -Name EnableQueryAccessAlignment -Value 1 -PropertyType DWord
New-ItemProperty -Path $vioscsi_path -Name EnableQueryAccessAlignment -Value 1 -PropertyType DWord -Force

# Change SanPolicy. Setting is persistent even after sysprep. This helps in
# ensuring all attached disks are online when instance is built.
Expand Down

0 comments on commit 086b427

Please sign in to comment.