From 24d962eb7288952847eeaeeed4691ba88b05a574 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 2 Jan 2018 14:03:34 -0800 Subject: [PATCH] Swap usage of share name and id for consistent behavior --- plugins/hosts/windows/scripts/set_share.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hosts/windows/scripts/set_share.ps1 b/plugins/hosts/windows/scripts/set_share.ps1 index 8c4e077b5..b483088af 100644 --- a/plugins/hosts/windows/scripts/set_share.ps1 +++ b/plugins/hosts/windows/scripts/set_share.ps1 @@ -27,7 +27,7 @@ for ($i=0; $i -le $args.length; $i = $i + 3) { exit 1 } - $result = net share $share_name=$path /unlimited /GRANT:$grant /REMARK:"${share_id}" + $result = net share $share_id=$path /unlimited /GRANT:$grant /REMARK:"${share_name}" if ($LastExitCode -ne 0) { $host.ui.WriteLine("share path: ${path}") $host.ui.WriteErrorLine("error ${result}")