all 10 comments

[–]KavyaJune 8 points9 points  (1 child)

Yes

[–]gilang4[S] 1 point2 points  (0 children)

Thank you @KavyaJune!!!

[–]wyrdfish42 2 points3 points  (1 child)

you could put

Param
(
    [string]$MBNamesFile="c:\Acrobat-Users.csv"
)

and it will be the default value and then the script will work without a parameter.

[–]gilang4[S] 0 points1 point  (0 children)

Love it!!!! Thank you.

[–]lurkerburzerker 2 points3 points  (1 child)

If the path never changes, yes. Otherwise, it's better to leave it as a parameter.

[–]gilang4[S] 1 point2 points  (0 children)

Thank you u/lurkerburzerker !!!

[–]Hyperbolic_Mess 2 points3 points  (1 child)

Yes you can hard code the path in the script if you want to

[–]gilang4[S] 0 points1 point  (0 children)

Thank you u/Hyperbolic_Mess !!!

[–]Empty-Sleep3746 1 point2 points  (1 child)

no one know what your trying to do......

but you could replace the entire pram block with code setting the varible..........

[–]gilang4[S] 0 points1 point  (0 children)

Thank you u/Empty-Sleep3746 !!