How to remote execute an ELEVATED remote script in PowerShell

后端 未结 2 1893
醉酒成梦
醉酒成梦 2021-02-09 10:44

I have two servers:

  • serverA (windows 2003 server)
  • serverB (windows 7)

ServerA contains a

2条回答
  •  梦毁少年i
    2021-02-09 11:31

    Do you try to change remoteDeploy.ps1 to start CMD.EXE with elevated rights :

    cd D:\Builds\build5
    start-process CMD.EXE -verb runas -argumentlist "-C",".\Deploy.bat"
    

提交回复
热议问题