您好,
建议您首先查看日志文件,搞清楚是什么原因导致脚本运行失败。
Log files in System Center Configuration Manager
https://docs.microsoft.com/en-us/sccm/core/plan-design/hierarchy/log-files#BKMK_AppManageLog
如果全部2008系统都失败的话,您有试着手动在2008系统下,执行脚本吗?
也可以用pexec,这个工具测试。https://technet.microsoft.com/en-us/sysinternals/pstools.aspx
Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.