Windows 8.1 系统封装

时间:2024-03-24 21:15:01

封装所用工具:

  1. EasySysprep 4.0.17.395
  2. WanDrv6_Win8.x64_6.0.2014.0322

注意事项:

EasySysprep封装辅助工具使用时,在临近最后的步骤中不要使用压缩 Program Files下文件夹的功能,因为这样做虽然能够减少最终镜像文件的体积,但与系统恢复时增加的时间相比,解压缩文件夹时间显然过长。

不要用金山卫士或其它工具删除系统补丁安装目录(体积一般较大),否则可能会造成封装失败。

系统封装失败时,查看封装日志:找到C:\windows\system32\sysprep\panther目录,打开setuperr.log文件,查看错误详细信息,如下:

SYSPRP Package Microsoft.Internal.Media.PlayReadyClient_2.3.1678.1_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

SYSPRP Package Microsoft.WinJS.2.0.Preview.Internal_1.0.9385.3_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

或其它,等等

解决方法:http://support.microsoft.com/kb/2769827

Resolution

The correct way of removing the package is to remove the package for the user running sysprep and also remove the provisioning. This can be done using the following Powershell cmdlets:

  1. Import-Module Appx
  2. Import-Module Dism
  3. Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe |  Format-List -Property PackageFullName,PackageUserInformation
    Notes:
    • From the output of the above command, check the users for whom the package is showing up as Installed. Delete these user accounts from the reference machine, or log in to the machine using these user accounts and run Step 4 to remove the Appx Package.
    • The above command lists all packages that were published by Microsoft and installed by any user of that reference machine. Since the machine is to be sysprepped, we assume that these user profiles no longer need the package.
    • If you have manually provisioned apps belonging to other publishers, then use the command below to list them:
      Get-AppxPackage -AllUser | Format-List -Property PackageFullName,PackageUserInformation
  4. Remove-AppxPackage -Package <packagefullname>
  5. Remove the Provisioning using the following cmdlet: Remove-AppxProvisionedPackage -Online -PackageName <packagefullname>

Note: The issue will not occur if you are servicing an offline image since then the provisioning is automatically cleared for all users, including the user who runs the command.

即使用上述命令卸载日志文件中显示的故障app,如下图所示。

Windows 8.1 系统封装