locked
Start process remotely RRS feed

  • Question

  • I would like to call exe(start process) on another computer from CLR procedure?
    Is it possible?

    Now, i have System.Diagnostics.Process but it copies exe locally and run it on sql server computer, not on remote one.

    Monday, January 26, 2015 4:02 PM

Answers

  • You can do that from Powershell.

    http://stackoverflow.com/questions/18182690/how-to-start-remotely-process-in-powershell

    --PRashanth

    • Proposed as answer by Eric__Zhang Thursday, January 29, 2015 9:47 AM
    • Marked as answer by Katherine Xiong Monday, February 2, 2015 10:10 AM
    Monday, January 26, 2015 4:07 PM

All replies

  • You can do that from Powershell.

    http://stackoverflow.com/questions/18182690/how-to-start-remotely-process-in-powershell

    --PRashanth

    • Proposed as answer by Eric__Zhang Thursday, January 29, 2015 9:47 AM
    • Marked as answer by Katherine Xiong Monday, February 2, 2015 10:10 AM
    Monday, January 26, 2015 4:07 PM
  • You could use WMI library subject to security considerations, but this is unsupported, assembly and dependencies must be UNSAFE, and your code may stop working in future releases. Search this forum for "WMI" to see some of the things folks have run into.

    Cheers, Bob

       
    Monday, January 26, 2015 10:30 PM