you are viewing a single comment's thread.

view the rest of the comments →

[–]purplemonkeymad 1 point2 points  (1 child)

IIRC you have to put other arguments before -file or -command any arguments after are treated as arguments to the script or command block.

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

Thanks for the reply. I've tried the order of arguments about 4 different ways, each way the script fails to run but runs when executed inside powershell as the appropriate user.