Powershell 从软件中心运行任务序列 [英] Powershell to run task sequence from software center
问题描述
我在软件中心发布了 Windows 操作系统映像,我可以手动点击安装,重新映像系统,然后进行其他配置.我想使用 Powershell 自动执行.我可以为其他广告软件(如记事本++、chrome 和软件更新)执行此操作,但不能为操作系统映像执行此操作.有没有办法在客户端使用 Powershell 或任何其他脚本自动执行它?我没有 SCCM 访问权限来推送任务序列.谢谢
I have Windows OS image advertised in software center which I can manually hit install that reimages the system and does other configuration afterwards. I would like to automate the execution using Powershell. I am able to do do for other advertised software like notepad++, chrome, and software updates but not to OS image. Is there any way automate it at the client side using Powershell or any other script? I do not have SCCM access to push the task sequence. Thank you
推荐答案
尝试 UIResourceMgr
COM 对象.示例(来源):
Try the UIResourceMgr
COM-object. Example (source):
$UI = New-Object -ComObject "UIResource.UIResourceMgr"
$ProgramID = "*"
$PackageID = "PACKAGEID"
$UI.ExecuteProgram($ProgramID, $PackageID, $true)
这篇关于Powershell 从软件中心运行任务序列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!