diff --git a/plugins/hosts/windows/scripts/unset_share.ps1 b/plugins/hosts/windows/scripts/unset_share.ps1 index 4fec74d30..69dad89d1 100644 --- a/plugins/hosts/windows/scripts/unset_share.ps1 +++ b/plugins/hosts/windows/scripts/unset_share.ps1 @@ -1,5 +1,5 @@ ForEach ($share_name in $args) { - $result = net share $share_name /DELETE + $result = net share $share_name /DELETE /YES if ($LastExitCode -ne 0) { Write-Output "share name: ${share_name}" Write-Error "error - ${result}"