remote invoke a bat RRS feed

  • Question

  • Support I have server A and Server B. there is a script in Server B C:\temp\script\test.bat

    how to invoke C:\temp\script\test.bat in Server B from Server A using powershell in ServerA ?

    Thursday, February 14, 2019 6:42 AM

All replies

  • Invoke-Command-ScriptBlock {C:\temp\script\test.bat} -ComputerName ServerB



    • Proposed as answer by Mr XMVP Thursday, February 14, 2019 9:59 AM
    Thursday, February 14, 2019 7:14 AM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,


    Just do it.

    Thursday, February 28, 2019 9:58 AM