cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
etailz
Engaged Sweeper II
This works exactly how I want it to in an action, but in a deployment it timed out? Any ideas?

cmd.exe /k {actionpath}psexec.exe \\{computer} cmd /c "C:\it\runps.bat"

1 ACCEPTED SOLUTION
Daniel_B
Lansweeper Alumni
In deployment tasks you can't use placeholders as in action commands. Theoretically in this case you need to exchange {actionpath} with your full action path and you can leave out {computer}, as all deployment steps will be executed directly on the target machine(s), other than asset actions, which will be executed on the computer you are using to open the web console. For this reason however you likely don't need to use psexec.exe at all. Just create a Command step and enter the command which you would like to execute on the target machine. We recommend testing commands first on an example machine in order to know that it does what you expected and no user interaction is required.

For details on how to create a deployment package, have a look at this KB article.

View solution in original post

2 REPLIES 2
etailz
Engaged Sweeper II
Thanks! It was simple to fix didn't need anything but the command. Was way over thinking it.

Daniel_B
Lansweeper Alumni
In deployment tasks you can't use placeholders as in action commands. Theoretically in this case you need to exchange {actionpath} with your full action path and you can leave out {computer}, as all deployment steps will be executed directly on the target machine(s), other than asset actions, which will be executed on the computer you are using to open the web console. For this reason however you likely don't need to use psexec.exe at all. Just create a Command step and enter the command which you would like to execute on the target machine. We recommend testing commands first on an example machine in order to know that it does what you expected and no user interaction is required.

For details on how to create a deployment package, have a look at this KB article.