MDT和Powershell

错误信息权限建立

我已经检查了path名称,它们是正确的。 我试过编辑权限,他们似乎很好。

还有什么我应该尝试?

编辑:

我也试过这样的: http : //damonjohns.com/2014/03/12/removing-windows-8-1-modern-applications-during-your-mdt-sccm-task-sequence/

我没有得到屏幕,但脚本似乎并没有复制ps1文件来执行它们。

我的脚本:

powershell.exe -Command “set-ExecutionPolicy Unrestricted -Force; cpi '%DEPLOYROOT%\Applications\SCRIPT - Enable Remote Managament By Opening Firewall Rules\script_enable_remote_management_open_firewall_rules.ps1′ -destination c:\; c:\script_enable_remote_management_open_firewall_rules.ps1" 

编辑:每次我检查C:\我看不到我的规则复制。 我现在也已经有了一切都没有得到一个失败的屏幕,但我没有看到脚本,并没有看到他们执行。

要运行Power Shell脚本,您需要将其添加为任务序列项目。 您可以通过将“ Run PowerShell Script条目添加到任务序列中来执行此操作。

确保在系统重新安装/应用映像之后添加它。

如何添加到任务序列中

在任务configuration中,您需要指向包含命令的ps1文件。 你可能可以执行一个命令(我不确定)。