Remove stale comments from helper scripts
This commit is contained in:
parent
aabf4d689c
commit
88d2b3676f
|
@ -4,8 +4,6 @@ $objUser = $objSID.Translate([System.Security.Principal.NTAccount])
|
||||||
|
|
||||||
$grant = "$objUser,Full"
|
$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) {
|
for ($i=0; $i -le $args.length; $i = $i + 3) {
|
||||||
$path = $args[$i]
|
$path = $args[$i]
|
||||||
$share_name = $args[$i+1]
|
$share_name = $args[$i+1]
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# Share names are comma delimited
|
|
||||||
ForEach ($share_name in $args) {
|
ForEach ($share_name in $args) {
|
||||||
$result = net share $share_name /DELETE
|
$result = net share $share_name /DELETE
|
||||||
if ($LastExitCode -ne 0) {
|
if ($LastExitCode -ne 0) {
|
||||||
|
|
Loading…
Reference in New Issue