IT天空

 找回密码
 加入我们

手机号码,快捷登录

搜索

[有疑问] Win11第一阶段封装失败

[复制链接]
WhatLife 发表于 2023-2-21 00:31:40 | 显示全部楼层 |阅读模式

IT天空 定制版高速U盘 128G | 固态U盘 256G Pro/512G Pro
万能驱动反馈
计算机类型: 【DIY】台式机(一体机)
计算机型号: -
系统类型: Windows 10
系统位宽: 64位(x64)
系统完整性: 少量精简
驱动版本:
主程序版本:
运行时机: PE
驱动安装方式: 全新安装
硬件型号: 2060
硬件ID: -
发生问题时是否在虚拟机中: VMWare Workstation虚拟机 » 12.X或更新
问题描述: 第一步封装失败
Win11 21h2版本,少量精简,封装失败,请求大佬看下,感谢。

2023-02-21 00:10:32, Info                  SYSPRP ========================================================
2023-02-21 00:10:32, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2023-02-21 00:10:32, Info                  SYSPRP ========================================================
2023-02-21 00:10:32, Info       [0x0f004d] SYSPRP The time is now 2023-02-21 00:10:32
2023-02-21 00:10:32, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\system32\sysprep\Panther
2023-02-21 00:10:32, Info       [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
2023-02-21 00:10:32, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\system32\sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2023-02-21 00:10:32, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'REBOOT'
2023-02-21 00:10:32, Info       [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
2023-02-21 00:18:07, Info                  SYSPRP ========================================================
2023-02-21 00:18:07, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2023-02-21 00:18:07, Info                  SYSPRP ========================================================
2023-02-21 00:18:07, Info       [0x0f004d] SYSPRP The time is now 2023-02-21 00:18:07
2023-02-21 00:18:07, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\system32\sysprep\Panther
2023-02-21 00:18:07, Info       [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
2023-02-21 00:18:07, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\system32\sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2023-02-21 00:18:07, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'REBOOT'
2023-02-21 00:18:07, Info       [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
2023-02-21 00:18:09, Error      [0x0f0043] SYSPRP WinMain:The sysprep dialog box returned FALSE
2023-02-21 00:18:09, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2023-02-21 00:18:09, Info       [0x0f004d] SYSPRP The time is now 2023-02-21 00:18:09
2023-02-21 00:18:25, Info                  SYSPRP ========================================================
2023-02-21 00:18:25, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2023-02-21 00:18:25, Info                  SYSPRP ========================================================
2023-02-21 00:18:25, Info       [0x0f004d] SYSPRP The time is now 2023-02-21 00:18:25
2023-02-21 00:18:25, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
2023-02-21 00:18:25, Info       [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
2023-02-21 00:18:25, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2023-02-21 00:18:25, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2023-02-21 00:18:25, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2023-02-21 00:18:25, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'QUIET'
2023-02-21 00:18:25, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'QUIT'
2023-02-21 00:18:25, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
2023-02-21 00:18:25, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
2023-02-21 00:18:25, Info                  SYSPRP RunDlls:Running platform actions specified in action file for phase 3
2023-02-21 00:18:25, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2023-02-21 00:18:25, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2023-02-21 00:18:25, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2023-02-21 00:18:25, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2023-02-21 00:18:25, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
2023-02-21 00:18:29, Info                  CSI    00000001 Shim considered [l:125]'\??\C:\Windows\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.898_none_6b467c06908d3d29\wcp.dll' : got STATUS_OBJECT_PATH_NOT_FOUND
2023-02-21 00:18:29, Info                  CSI    00000002 Shim considered [l:122]'\??\C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.898_none_6b467c06908d3d29\wcp.dll' : got STATUS_SUCCESS
2023-02-21 00:18:29, Info                  SYSPRP Sysprep_Clean_Validate_Opk: Successfully validated reserves state on the machine for entering audit mode.
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
2023-02-21 00:18:29, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
2023-02-21 00:18:29, Info                  SYSPRP RunDlls:Running platform actions specified in action file for phase 1
2023-02-21 00:18:29, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
2023-02-21 00:18:29, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
2023-02-21 00:18:29, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2023-02-21 00:18:29, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll
2023-02-21 00:18:29, Info                  SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.
2023-02-21 00:18:29, Info                  SYSPRP All appx packages were verified to be inbox or alluser installed.
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll
2023-02-21 00:18:29, Info       [0x0f004a] SYSPRP WaitThread:Entering spawned waiting thread
2023-02-21 00:18:29, Info                         [sysprep.exe] UnattendFindAnswerFile: Looking at explicitly provided unattend file [D:\Temp\Unattend.xml]...
2023-02-21 00:18:29, Info                         [sysprep.exe] UnattendFindAnswerFile: [D:\Temp\Unattend.xml] meets criteria for an explicitly provided unattend file.
2023-02-21 00:18:29, Info                  SYSPRP SysprepSearchForUnattend: Using unattend file at [D:\Temp\Unattend.xml].
2023-02-21 00:18:29, Info                  SYSPRP SysprepSearchForUnattend: [generalize] pass in unattend file [D:\Temp\Unattend.xml] either doesn't exist or passed validation
2023-02-21 00:18:29, Info                  SYSPRP WinMain:Found unattend file at [D:\Temp\Unattend.xml]; caching...
2023-02-21 00:18:29, Info                  SYSPRP WinMain:Processing unattend file's 'generalize' pass...
2023-02-21 00:18:29, Info                  SYSPRP Sysprep is running a generalize pass with the following unattend file: [%windir%\panther\unattend.xml]
2023-02-21 00:18:29, Info                  CSI    00000001@2023/2/20:16:18:29.256 WcpInitialize: wcp.dll version 10.0.22621.898 (WinBuild.160101.0800)
2023-02-21 00:18:29, Info                         [sysprep.exe] [Action Queue] : GenerateActionQueue begin
2023-02-21 00:18:29, Info                         [sysprep.exe] [Action Queue] : Processing pass = generalize
2023-02-21 00:18:29, Info                         [sysprep.exe] [Action Queue] : Generating queue file to C:\Windows\panther\actionqueue\generalize.uaq
2023-02-21 00:18:29, Info                         [sysprep.exe] [Action Queue] : Identity 0: Microsoft-Windows-PnpSysprep, Culture=neutral, Version=10.0.22621.608, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=amd64, versionScope=NonSxS
2023-02-21 00:18:29, Info                         [sysprep.exe] [Action Queue] : Using component order file C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.898_none_6b467c06908d3d29\GlobalInstallOrder.xml
2023-02-21 00:18:29, Info                  CSI    00000001@2023/2/20:16:18:29.256 WcpInitialize: wcp.dll version 10.0.22621.898 (WinBuild.160101.0800)
2023-02-21 00:18:29, Info                         [sysprep.exe] [Action Queue] : Found manifest file C:\Windows\Winsxs\Manifests\amd64_microsoft-windows-pnpsysprep_31bf3856ad364e35_10.0.22621.608_none_a405e1ba800c2c26.manifest
2023-02-21 00:18:29, Info                         [sysprep.exe] [Action Queue] : GenerateActionQueue finish (hr = 0x0)
2023-02-21 00:18:29, Info                         [sysprep.exe] [Action Queue] : ProcessActionQueue start
2023-02-21 00:18:29, Info                         [sysprep.exe] [Action Queue] : ProcessActionQueue using queue file C:\Windows\panther\actionqueue\generalize.uaq
2023-02-21 00:18:29, Info                         [sysprep.exe] [Action Queue] : ProcessActionQueue finish (hr = 0x0)
2023-02-21 00:18:29, Info                  SYSPRP RunUnattendGeneralizePass: Sysprep unattend generalize pass exits; hr = 0x0, hrResult = 0x0, bRebootRequired = 0x0
2023-02-21 00:18:29, Info       [0x0f00ac] SYSPRP WinMain:Processing 'cleanup' external provider request.
2023-02-21 00:18:29, Info       [0x0f006c] SYSPRP RunDlls:Running DLLs listed in registry for phase 3
2023-02-21 00:18:29, Info       [0x0f008a] SYSPRP RunRegistryDlls:Retrieved section name for this phase as Cleanup
2023-02-21 00:18:29, Info       [0x0f008f] SYSPRP RunRegistryDlls:Registry key is empty: SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SysPrepExternal\Cleanup
2023-02-21 00:18:29, Info       [0x0f00ad] SYSPRP WinMain:Processing 'generalize' extrenal provider request.
2023-02-21 00:18:29, Info       [0x0f006c] SYSPRP RunDlls:Running DLLs listed in registry for phase 1
2023-02-21 00:18:29, Info       [0x0f008a] SYSPRP RunRegistryDlls:Retrieved section name for this phase as Generalize
2023-02-21 00:18:29, Info       [0x0f008f] SYSPRP RunRegistryDlls:Registry key is empty: SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SysPrepExternal\Generalize
2023-02-21 00:18:29, Info       [0x0f003f] SYSPRP WinMain:Processing 'cleanup' internal provider request.
2023-02-21 00:18:29, Info                  SYSPRP RunDlls:Running platform actions specified in action file for phase 3
2023-02-21 00:18:29, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2023-02-21 00:18:29, Info                  SYSPRP SysprepSession::Execute: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2023-02-21 00:18:29, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2023-02-21 00:18:29, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2023-02-21 00:18:29, Info                  SYSPRP After sorting, components will be excuted in the following order:
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-Sysprep-SpOpk, Order: 256
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-SQMApi, Order: 768
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-EventLog, Order: 1024
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-LpkSetup, Order: 1280
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-SystemMaintenanceService-Core, Order: 1536
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-SystemRestore-Main, Order: 2048
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-Shell-Setup, Order: 2304
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-ErrorReportingCore, Order: 2560
2023-02-21 00:18:29, Info                  SYSPRP   Name: WindowsSearchEngine, Order: 2816
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-Sysprep-SpNet, Order: 3328
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-TaskScheduler-Service, Order: 3584
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-Cryptography, Order: 3840
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-UXInit, Order: 4096
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-COM-DTC-Runtime, Order: 4352
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-TapiSetup, Order: 4608
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-Compat-GeneralTel, Order: 5376
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-DeviceCensus-Schedule-ClientServer, Order: 5632
2023-02-21 00:18:29, Info                  SYSPRP   Name: Microsoft-Windows-DeliveryOptimization, Order: 6144
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Clean_Opk' from C:\Windows\System32\spopk.dll
2023-02-21 00:18:29, Info                  CSI    00000001 Shim considered [l:125]'\??\C:\Windows\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.898_none_6b467c06908d3d29\wcp.dll' : got STATUS_OBJECT_PATH_NOT_FOUND
2023-02-21 00:18:29, Info                  CSI    00000002 Shim considered [l:122]'\??\C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.898_none_6b467c06908d3d29\wcp.dll' : got STATUS_SUCCESS
2023-02-21 00:18:29, Info                  SYSPRP Sysprep_Clean_Opk:Successfully prepared reserves for sysprep.
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Opk' from C:\Windows\System32\spopk.dll
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'SqmSysprepCleanup' from sqmapi.dll
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'SqmSysprepCleanup' from sqmapi.dll
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'EvtIntSysprepCleanup' from C:\Windows\System32\wevtapi.dll
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'EvtIntSysprepCleanup' from C:\Windows\System32\wevtapi.dll
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Generalize_MUILangCleanup' from C:\Windows\System32\LangCleanupSysprepAction.dll
2023-02-21 00:18:29, Info                  SYSPRP Sysprep_Generalize_MUILangCleanup Start.
2023-02-21 00:18:29, Info                  SYSPRP Removing scheduled task for running lpremove.exe and all related data
2023-02-21 00:18:29, Info                  SYSPRP Removing scheduled task for lpremove.exe succeeed
2023-02-21 00:18:29, Info                  SYSPRP Removing MUIUnattend-OOBE handshake value
2023-02-21 00:18:29, Info                  SYSPRP MUIUnattend-OOBE handshake value is not present on the system
2023-02-21 00:18:29, Info                  SYSPRP Removing LocalSystem MUI Language registry keys
2023-02-21 00:18:29, Info                  SYSPRP Sysprep_Generalize_MUILangCleanup End.
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Generalize_MUILangCleanup' from C:\Windows\System32\LangCleanupSysprepAction.dll
2023-02-21 00:18:29, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'PfSvSysprepCleanup' from C:\Windows\System32\sysmain.dll
2023-02-21 00:18:30, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'PfSvSysprepCleanup' from C:\Windows\System32\sysmain.dll
2023-02-21 00:18:30, Error                 SYSPRP ActionPlatform::LaunchModule: Could not load DLL srclient.dll; dwRet = 0x7e[gle=0x0000007e]
2023-02-21 00:18:30, Error                 SYSPRP SysprepSession::ExecuteAction: Failed during sysprepModule operation; dwRet = 0x7e[gle=0x0000007e]
2023-02-21 00:18:30, Error                 SYSPRP SysprepSession::ExecuteInternal: Error in executing action for Microsoft-Windows-SystemRestore-Main; dwRet = 0x7e[gle=0x0000007e]
2023-02-21 00:18:30, Error                 SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x7e
2023-02-21 00:18:30, Info                  SYSPRP SysprepSession::Execute: Sysprep mode was not specified, deleting it from registry
2023-02-21 00:18:30, Error                 SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x7e
2023-02-21 00:18:30, Error      [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x7e
2023-02-21 00:18:30, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x8007007e
2023-02-21 00:18:30, Info       [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
2023-02-21 00:18:30, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2023-02-21 00:18:30, Info       [0x0f004d] SYSPRP The time is now 2023-02-21 00:18:30



naji7000 发表于 2023-2-22 03:53:01 | 显示全部楼层

活跃 5493| 技术 0| 互助 0| 钻石 0

本帖最后由 naji7000 于 2023-2-22 03:59 编辑

我虽然不知道应该精简那个核心软件,但(封装前)先透过以admin权限打开CMD或Powershell, 再执行以下字串, 再待完成再输入exit 来结束 CMD 或 Powershell 视窗, 便可成功封装了!

(封装前)
Get-AppxPackage -AllUsers | Remove-AppxPackage
==================================================
(部署后, 进桌面后)
.
以admin权限打开CMD或Powershell, 再执行以下字串, 再待完成再输入exit 来结束 CMD 或 Powershell 视窗, 便可成功部署了! (必需执行,否则Windows Defender 介面打不开滴)

(Windows 10 专用字串[有分别的])
Get-AppxPackage -allusers | foreach {Add-AppxPackage -register "$($_.InstallLocation)\appxmanifest.xml" -DisableDevelopmentMode}
exit


(Windows 11 专用字串[有分别的])
Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
exit

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

WhatLife

5

活跃

0

技术

0

互助
签到任务
最火的业界新闻
  • 正面颜值堪称完美!努比亚Z50 Ultra真机亮
  • 苹果拒绝翻车!iPhone 15 Pro独享A17大曝光
  • 小米MIX Fold 3下半年登场:真全面屏MIX回
  • 创始人:RISC-V架构比ARM/x86简单好用 将成
  • 刷新家庭网速极限!一大波Wi-Fi 7路由器等
  • 对标苹果M系列!高通新U已在路上:PC处理器
  • 直屏党福音!魅族20系列确定全系柔性直屏
  • 消息称蔚来手机将很快上市:定位高端 绝无
  • 144MB缓存史无前例 AMD游戏神U锐龙7000缓存
  • RTX 4070显卡即将登场:最关键参数提前揭晓
炫酷的硬件Show
  • MARK 1 - 设计型 PC 与垂直风道
  • 好的大王,没问题大王
  • 振华SUPER FLOWER 铜皇450W 铜牌电源
  • 比小更小,Mini-STX装机
  • 华擎X99E-ITX + 银欣ML06 装机记
  • 最强双路泰坦硬管水冷 制作流程
  • 银欣FT02,双路E5工作站
  • 迟到的定制机箱小钢炮清理灰尘
  • 乔思伯UMX1 Plus,小巧的家用综合主机
  • 分体水冷第二弹-Inwin 805 infinity
有趣的美图分享
  • 作业补不完了
  • 无敌辟邪大法
  • 馕是不是有点太过分了啊?
  • 老板给我拿个软饭
  • 病人:我不就是手骨个折吗?
关注官方微信
快速回复 返回顶部 返回列表