windows.miracastview 上的 Sysprep 失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46818294/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Sysprep failure on windows.miracastview
提问by JD.
When trying to sysprep and windows 10 (1709) build I get the following error:
尝试 sysprep 和 Windows 10 (1709) 构建时,出现以下错误:
Package Windows.MiracastView_6.3.0.0_neutral_cw5n1h2txyewy was installed for a
user but not provisioned for all users. This package will not function
properly in the sysprep image.
I tried using powershell to remove it but the error message says it is part of windows and cannot be removed.
我尝试使用 powershell 删除它,但错误消息说它是 Windows 的一部分,无法删除。
I checked the user accounts and I only have one user account (other accounts are built-in windows accounts).
我检查了用户帐户,我只有一个用户帐户(其他帐户是内置的 Windows 帐户)。
How can I get sysprep to work?
我怎样才能让 sysprep 工作?
After further investigation I found that miracast view is the only app where Get-AppxPackage -allusers has the pending status:
经过进一步调查,我发现 miracast 视图是唯一一个 Get-AppxPackage -allusers 处于挂起状态的应用程序:
Name : Windows.MiracastView
名称:Windows.MiracastView
Publisher : CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
出版商:CN=Microsoft Windows,O=Microsoft Corporation,L=Redmond,S=Washington,C=US
Architecture : Neutral
架构:中性
ResourceId : neutral
ResourceId : 中性
Version : 6.3.0.0
版本:6.3.0.0
PackageFullName :Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy
包全名:Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy
InstallLocation :
安装位置:
IsFramework : False
IsFramework : 错误
PackageFamilyName : Windows.MiracastView_cw5n1h2txyewy
包家族名称:Windows.MiracastView_cw5n1h2txyewy
PublisherId : cw5n1h2txyewy
发布者 ID : cw5n1h2txyewy
PackageUserInformation : {S-1-5-21-4120236872-3763413694-1479318824-1000 [Operator]: Installed(pending removal)}
包用户信息:{S-1-5-21-4120236872-3763413694-1479318824-1000 [操作员]:已安装(待删除)}
IsResourcePackage : False
IsResourcePackage : 错误
IsBundle : False
IsBundle : 错误
IsDevelopmentMode : False
IsDevelopmentMode : False
IsPartiallyStaged : False
IsPartiallyStaged : 假
SignatureKind : System
签名类型:系统
Status : Ok
状态:好的
回答by JD.
Okay, here is what I found and it was probably due to a lack of understanding how imaging works that caused the issue in the first place although it was only after the 1709 october release did we see the issue.
好的,这就是我发现的,这可能是由于缺乏对成像工作原理的了解,首先导致了这个问题,尽管我们是在 1709 年 10 月发布之后才看到这个问题的。
So we have VMs where we create the images. When we did the 1709 update we had left the reference image on network which downloaded some additional updates for some windows store apps. Each time we sysprep'd we kept getting failures. Removing the apps with powershell only highlighted other apps that needed to be removed. These were staged app entries and can be found as:
所以我们有创建镜像的虚拟机。当我们进行 1709 更新时,我们在网络上留下了参考图像,该图像为某些 Windows 商店应用程序下载了一些额外的更新。每次我们进行系统准备时,我们都会不断失败。使用 powershell 删除应用程序只会突出显示需要删除的其他应用程序。这些是暂存的应用程序条目,可以在以下位置找到:
Get-AppXPackage -AllUser | % {if ($_.PackageUserInformation.InstallState -eq "Staged"){$_.PackageFullname}}
So, I left the reference image on the network and waited until all the staged entries disappeared (this took about 30 minutes). Rerunning the script above will not show any staged apps.
所以,我把参考图片留在了网络上,一直等到所有分阶段的条目都消失了(这花了大约 30 分钟)。重新运行上面的脚本不会显示任何暂存的应用程序。
Once this was done, sysprep worked.
完成此操作后,系统准备工作。
I think in the past, staged apps did not cause sysprep to fail but now it does.
我认为在过去,暂存的应用程序不会导致 sysprep 失败,但现在确实如此。
Note that you'll see a wsappx process that runs which updates all the staged apps (view in Task manager).
请注意,您将看到一个 wsappx 进程,该进程运行更新所有暂存应用程序(在任务管理器中查看)。