From ee2072ec53dccaee2d26ab81f931f10b2899c52e Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 19 Dec 2018 08:59:13 -0800 Subject: [PATCH] Automatically answer yes when pruning SMB shares --- plugins/hosts/windows/scripts/unset_share.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"