SCCM2012分发脚本

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}"

原文地址:https://www.cnblogs.com/dreamer-fish/p/3402998.html