網頁

2022年2月17日 星期四

二月上旬的林初埤木棉道

林初埤木棉花的花期約在每年2月下旬到3月中旬,吸引大批賞花遊客,整條木棉道,人山人海。二月上旬黃昏,路過白河,先一睹木棉花含苞中,一人包場欣賞意境。





林初埤木棉花王(在木棉道北邊)



善化糖廠百年老樟樹

 這棵樟樹,位於善化糖廠冰品部旁親水休憩公園北邊,善糖興起、轉型,經歷二次雷劈,留下烙印,仍屹立不搖。

2022年2月15日 星期二

白河水田夕陽

 黃昏路過台南白河,碰上種稻水田插秧期,夕陽映在已插秧、未插秧水稻田,形成一幅季節性限時美景,欣賞時間短暫,太陽很快就下山了。






2022年2月14日 星期一

系統封裝失敗,系統封裝與綜合驅動程式包更改首頁及顯示語言的解決方案

本文以SC系统封装工具最新版及驅動總裁drvceo最新版為例
系統封裝失敗畫面如下:
封裝錯誤診斷檔案存於桌面

開啟setuperr.log查看造成封裝錯誤的原因


ScRun22.0205.0241.44.log
========================= Begin =========================
2022-02-05 02:41:44 ReadSysinfo
2022-02-05 02:41:44 LangsPath:C:\Windows\AppPatch\Sccht.sc
2022-02-05 02:41:44 ScdataPath:C:\scpt_win10_64\Scset.ini
========================= Basic =========================
By:Noime E-Mail:noime@qq.com QQ:562628018
驅動總裁官方網站:www.drvceo.com
系統總裁官方網站:www.sysceo.com
系統總裁聯盟官方網站:www.sysceo.cn
CPUCount:8
系統資訊:Windows 11 SP0(Ver 10.0.22000.469, x64)
NT版本:10.0.22000.469
系統語言:中文台灣繁體
運行環境:桌面環境
程式版本:3.0.0.136 Bit:x86
程式路徑:C:\scpt_win10_64\|C:\scpt_win10_64\Scpt.exe
========================== Run ==========================
2022-02-05 02:41:45 Load Controls
2022-02-05 02:41:46 [Server] Connection server failed
2022-02-05 02:41:51 [Sysprep.NT6.Type] Basic
2022-02-05 02:41:51 [Sysprep.ClearOldinfo] Systeminfo_NT6
2022-02-05 02:41:51 [Sysprep.WriteUnattend] Begin
2022-02-05 02:41:51 [Sysprep.WriteUnattend] SkipOOBE True
2022-02-05 02:41:51 [Sysprep.WriteUnattend] End
2022-02-05 02:41:51 [Sysprep.Systemsettings] Begin
2022-02-05 02:41:51 [Sysprep.Systemsettings] Driver
2022-02-05 02:41:51 [Sysprep.Systemsettings] Driver Path
2022-02-05 02:41:51 [Sysprep.Systemsettings] Network
2022-02-05 02:41:52 [Sysprep.Systemsettings] ClearReg
2022-02-05 02:41:52 [Sysprep.Systemsettings] Savesysset
2022-02-05 02:41:52 [Sysprep.Systemsettings] Saveinput
2022-02-05 02:41:52 [Sysprep.Systemsettings] Get-DefaultAppAssociations
2022-02-05 02:41:54 [Sysprep.Systemsettings] Get-StartLayout
2022-02-05 02:41:58 [Sysprep.Systemsettings] GPedit Begin
2022-02-05 02:41:58 [Sysprep.Systemsettings] GPedit End
2022-02-05 02:41:58 [Sysprep.SynchronizationInfo] Begin
2022-02-05 02:41:58 [Sysprep.SynchronizationInfo] End
2022-02-05 02:41:58 [Sysprep.Systemsettings] End
2022-02-05 02:41:58 [Sysprep.LoadsrsDrivers] Begin
2022-02-05 02:41:58 [Sysprep.LoadsrsDrivers] OS Win10 | Win10 | -win10x64
2022-02-05 02:41:58 [Sysprep.LoadsrsDrivers] Cmdline Nil | -win10x64
2022-02-05 02:41:58 [Sysprep.LoadsrsDrivers] End
2022-02-05 02:41:58 [Sysprep.Run] Begin
2022-02-05 02:42:00 [Sysprep.Run] Execution Failure

setuperr.log
造成封裝錯情況之一,OneDrive造成的
2022-02-05 02:42:00, Error                 SYSPRP Package Microsoft.OneDriveSync_21220.1024.5.0_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2022-02-05 02:42:00, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2022-02-05 02:42:00, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2022-02-05 02:42:00, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2022-02-05 02:42:00, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2022-02-05 02:42:00, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2022-02-05 02:42:00, Error      [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2022-02-05 02:42:00, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

造成封裝錯情況之二,Spotify造成的
2022-02-05 12:53:49, Error                 SYSPRP Package SpotifyAB.SpotifyMusic_1.178.765.0_x86__zpdnekdrzrea0 was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2022-02-05 12:53:49, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2022-02-05 12:53:49, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2022-02-05 12:53:49, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2022-02-05 12:53:49, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2022-02-05 12:53:49, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2022-02-05 12:53:49, Error      [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2022-02-05 12:53:49, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

造成封裝錯情況之三,Disney造成的
2022-02-05 12:55:39, Error                 SYSPRP Package Disney.37853FC22B2CE_1.23.4.0_x64__6rarf9sa4v8jt was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2022-02-05 12:55:39, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2022-02-05 12:55:39, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2022-02-05 12:55:39, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2022-02-05 12:55:39, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2022-02-05 12:55:39, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2022-02-05 12:55:39, Error      [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2022-02-05 12:55:39, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

目前帳戶administrator,
於程式和功能移除OneDrive
Spotify及Disney,於「已釘選」可移除

如安裝的帳戶是user,在user的程式和功能移除OneDrive,於「已釘選」移除Spotify及Disney。

切換至user帳戶操作
開始->右鍵->電腦管理

->本機使用者和群組->使用者->administrator->點選 帳戶已停用->套用->確定

user->點選 取消 帳戶已停用->套用->確定

開始->重新啟動

在user的程式和功能移除OneDrive,於「已釘選」移除Spotify及Disney。

或執行批次檔removeapp.cmd,移除造成封裝失敗的app
PowerShell -Command "Get-AppxPackage Microsoft.OneDriveSync* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage Disney.* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage SpotifyAB.* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage Microsoft.LanguageExperiencePack* | Remove-AppxPackage"
pause

啟用administrator帳戶

停用user帳戶

重新啟動登入administrator帳戶

於administrator帳戶,執行批次檔removeapp.cmd,移除造成封裝失敗的app
PowerShell -Command "Get-AppxPackage Microsoft.OneDriveSync* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage Disney.* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage SpotifyAB.* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage Microsoft.LanguageExperiencePack* | Remove-AppxPackage"
pause

重新執行封裝程式
看到下圖sysprep畫面,可以順利封裝了。

封裝完成。
切記!要設定從PE開機,備份封裝完成的windows系統。
封裝windows10/11心得:
1.全程停用網路,windows 也不離線更新,office可離線更新,這樣windows10/11可以順利封裝。
2.先停用網路,安裝windows ,office離線更新完成後,開網路線上更新windows及office,更新完成,立即停用網路封裝windows,這樣windows10/11封裝成功機率高。如封裝失敗,移除造成封裝失敗的app,再封裝成功機率高。
3.全程開網路,安裝windows 、office並上網更新,封裝失敗機率高。如封裝失敗,移除造成封裝失敗的app,再封裝成功機率較低。
如要追求較完美封裝windows 10/11,不移除程式,線上更新windows 、office,建議先停用網路,安裝windows,office離線更新,先備份起來。開網路線上更新windows及office,更新完成,立即停用網路封裝windows,

系統封裝與綜合驅動程式包更改首頁及顯示語言畫面
開啟internet explorer畫面,首頁畫面被更改

開啟edge畫面,首頁被更改

開啟 edge首頁被更改後,導向新網頁
查看edge操作介面顯示語言,被更改了

edge操作介面語言,沒有繁體中文

瀏覽繁體中文網頁可正常顯示
設定及其他 功能表是簡體 

系統封裝與綜合驅動程式包更改首頁及顯示語言的解決方案:
1.手動更改EDGE語言及重設設定。
設定及其他->設置

->語言

->新增語言
->點選 中文(繁體)
->添加

->以這種語言顯示

->重啟

設定及其他 功能表改為繁體了。

->重設設定

將設定還原為其預設值  >,重設
經過重新設定語言及重設設定之後,即可解決edge首頁及顯示語言被更改問題。

2.製作萬用還原的理念是希望儘可能自動執行及自動設定,為了解決還原後首頁及顯示語言被更改問題,曾試過改設定檔或註冊檔,未找到完整解決方式。 以使用者帳戶administrator為例,測試edge、google chrome安裝完成,結束 google chrome及edge工作,分別備份c:\Users\Administrator\AppData\Local\Google\Chrome的user data資料夾及c:\Users\Administrator\AppData\Local\Microsoft\Edge的user data資料夾,於萬用還原部署完成,第一次登入桌面時,執行批次檔指令,結束 google chrome及edge工作,分別刪除google chrome及edge的user data資料夾,再將原先備份的google chrome、edge的user data資料夾,分別解壓縮至c:\Users\Administrator\AppData\Local\Google\Chrome的user data資料夾及c:\Users\Administrator\AppData\Local\Microsoft\Edge的user data資料夾。

結束 google chrome及edge工作的批次檔指令
taskkill /f /im msedge.exe
taskkill /f /im chrome.exe
taskkill /f /im MicrosoftEdgeUpdate.exe

清除360度瀏覽器殘留註冊檔機碼的批次檔指令
reg delete "HKCU\Software\360Chromex" /f
reg delete "HKEY_USERS\S-1-5-21-1964147999-301648238-3903174671-500\Software\360Chromex" /f

分別刪除google chrome及edge的user data資料夾,再將原先備份的google chrome、edge的user data資料夾,分別解壓縮至google chrome及edge的user data資料夾的批次檔指令
cd /d "%~dp0"
C:\Windows\System32\attrib "c:\Users\Administrator\AppData\Local\Microsoft\Edge\User Data" -s -r -h  /s /d
C:\Windows\System32\attrib "c:\Users\Administrator\AppData\Local\Google\Chrome\User Data" -s -r -h  /s /d
C:\Windows\System32\attrib "C:\Users\Administrator\AppData\Local\360Chrome" -s -r -h  /s /d
rd "C:\Users\Administrator\AppData\Local\Microsoft\Edge\User Data" /Q /S
md  "C:\Users\Administrator\AppData\Local\Microsoft\Edge\User Data"
rd "C:\Users\Administrator\AppData\Local\Google\Chrome\User Data" /Q /S
md  "C:\Users\Administrator\AppData\Local\Google\Chrome\User Data"
rd "C:\Users\Administrator\AppData\Local\360Chrome" /Q /S
"C:\Program Files\7-Zip\7z.exe" x UserDatae.7z -y -aos -o"c:\Users\Administrator\AppData\Local\Microsoft\Edge"
"C:\Program Files\7-Zip\7z.exe" x UserDatag.7z -y -aos -o"c:\Users\Administrator\AppData\Local\Google\Chrome"

因 google chrome及edge還原的user data資料夾是剛安裝完成時備份的,所以,可以解決首頁及顯示語言於系統封裝或安裝綜合驅動程式包時被更改問題。 

注意:
1.要結束 google chrome及edge工作,才能完整備份user data資料夾。備份前先重設,以減少備份檔大小。
2.萬用還原部署完成,第一次登入桌面時,要先結束 google chrome及edge工作,才能刪除、建立、還原user data資料夾。