diff --git a/plugins/hosts/windows/scripts/set_share.ps1 b/plugins/hosts/windows/scripts/set_share.ps1 index a102e08c2..8c4e077b5 100644 --- a/plugins/hosts/windows/scripts/set_share.ps1 +++ b/plugins/hosts/windows/scripts/set_share.ps1 @@ -4,8 +4,6 @@ $objUser = $objSID.Translate([System.Security.Principal.NTAccount]) $grant = "$objUser,Full" -# First we split the defs string by commas to get -# each group of parameters for ($i=0; $i -le $args.length; $i = $i + 3) { $path = $args[$i] $share_name = $args[$i+1] diff --git a/plugins/hosts/windows/scripts/unset_share.ps1 b/plugins/hosts/windows/scripts/unset_share.ps1 index ebbfda59b..4fec74d30 100644 --- a/plugins/hosts/windows/scripts/unset_share.ps1 +++ b/plugins/hosts/windows/scripts/unset_share.ps1 @@ -1,4 +1,3 @@ -# Share names are comma delimited ForEach ($share_name in $args) { $result = net share $share_name /DELETE if ($LastExitCode -ne 0) {