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

posted on 2013-11-01 23:03  momingliu11  阅读(1370)  评论(0编辑  收藏  举报