I am getting the above problem with the below script in powershell. I can\'t seem to find the issue. The script requires 2 parameters, and I\'ve supplied them on the command lin
Try it with the -Command parameter e.g.:
-Command
powershell.exe -ExecutionPolicy Bypass -Command {invoke-command -file installboot.ps1 -computername 192.168.162.1 -argumentlist MyServer\MyNewService,option2}