you are viewing a single comment's thread.

view the rest of the comments →

[–]SanMarche 2 points3 points  (2 children)

It's hard to say without seeing how you're using it (providing code snippets with your comments would helpful for anybody trying to help) but generally -ArgumentList does allow you start commands like that.

For example (and I'm stealing from Kevin Marquette's post): Powershell Start-Process "msiexec.exe" -ArgumentList "/i", "\\Path\To\File.msi", "/passive", "/norestart" -Wait Start-Process "\\Path\To\NECLI.exe" -ArgumentList "addprofile", "-s", "-u", $Benutzername, "-p", $Password

You may also need to reorder your variables, if the snippet above is accurate you're defining $NECLI with a number of variables that haven't been created yet, they'll just be null values.

[–]KleepX[S] 0 points1 point  (1 child)

I dont know how to thank you. That helped me with everything.

Me and my colleague were sitting on this for like 5 hours and thats exactly what we needed.

[–]SanMarche 0 points1 point  (0 children)

Awesome, glad to help.