1.分发批处理脚本

   命令行:script.bat

2.分发PowerShell脚本

   命令行:PowerShell.exe -executionpolicy unrestricted -file .\script.ps1

无需其他特殊设置

 

SCCM2007分发PS脚本:http://c-nergy.be/blog/?p=2098

 

powershell -Command "& {Set-ExecutionPolicy -scope Currentuser -executionPolicy Unrestricted}"

相关文章:

  • 2021-11-05
  • 2021-07-16
  • 2021-10-03
  • 2022-01-17
  • 2022-01-20
  • 2021-11-20
  • 2021-08-16
  • 2021-10-30
猜你喜欢
  • 2021-09-23
  • 2021-10-18
  • 2021-05-20
  • 2022-01-04
  • 2022-12-23
  • 2022-02-19
相关资源
相似解决方案