Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Server side steps?

Is there a step that I can use that would be run on the server side as supposed to the client? I would like to execute robocopy but running from the context of the server. While it might not be the best example I am curious regardless if there is a way that this could be accomplished. 

 

Step 1 - Do something server side

Step 2 - Install Package X 

0

Comments

2 comments
Date Votes
  • You could try it with a command line step and psexec.

    PsExec.exe \\server1 c:\script.bat

    0
  • or PowerShell Invoke-Command 

    Invoke-Command -ComputerName PDQSERVER -ArgumentList Arg1,Arg2 -ScriptBlock {Copy-Item $args[0] $args[1]}

    However, why do you need to run this from the server? If you are copying something from the server to the client you can just use

    Copy-Item "\\PDQSERVER\Repository\Thing_To_Copy" "C:\Destination"
    0