SCCM2012分发脚本

时间:2023-03-09 16:03:25
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}"