mancha 发表于 2018-9-2 11:47:38

32. PowerShell -- 批处理中执行远程的powershell脚本的方法

  Execute the powershell.ps1 file
  REM Executepowershell.ps1 file
  powershell -ExecutionPolicy RemoteSigned "%systemdrive%\Tools\Scripts\powershell.ps1"
  PowerShell.exe .\powershell.ps1 %–parameter1%1 %–parameter2% 2

页: [1]
查看完整版本: 32. PowerShell -- 批处理中执行远程的powershell脚本的方法