在软件中心管理中,Microsoft Office 2016不断被删除。 一旦删除,它就进入了这个阶段,它不断尝试安装(看图片):
结果,我搜索了以下链接http://www.potentengineer.com/task-sequence-stuck-installing-in-software-center/ 这解释了我必须为软件中心运行以下powershell脚本来完成Microsoft Office 2016的安装并停止删除办公室2016:
# Fix for Software center show application stuck at Installing
# https://social.technet.microsoft.com/Forums/en-US/e382da34-079c-4619-8fdb-e5e44c436857/software-center-show-application-stuck-at-installing?forum=configmanagerapps
# Add service dependency for SMSTSMGR against CCMEXEC
# Author: Mike Palmer
# Date: 3rd July 2015
# Version: 1.01
# Get Service Details
$service = get-service smstsmgr
# Check ServiceDependedOn Array
if (($service.ServicesDependedOn).name -notcontains "ccmexec")
{
write-host "Not present...Configuring Service"
start-process sc.exe -ArgumentList "config smstsmgr depend= winmgmt/ccmexec" -wait
}
else
{
write-host "Present..Taking no action"
}
当涉及到PowerShell脚本时,我是一个超级菜鸟。请协助。 我尝试运行powershell脚本,但它没有解决问题。请协助。感谢