diff --git a/windows/win_get_url.ps1 b/windows/win_get_url.ps1 index 96189d69113..e5e1ea73c83 100644 --- a/windows/win_get_url.ps1 +++ b/windows/win_get_url.ps1 @@ -40,7 +40,9 @@ Else { Fail-Json $result "missing required argument: dest" } -If (-not (Test-Path $dest)) { +$force = Get-Attr -obj $params -name "force" "no" + +If ($force -eq "yes" -or -not (Test-Path $dest)) { $client = New-Object System.Net.WebClient Try {