银狼驰骋 发表于 2025-1-2 16:34

安装Win10系统后,C盘下的文件,大家帮忙看一下是什么意思

安装Win10系统后,C\Recovery\OEM 文件夹有两个文件,大家帮忙看一下是什么意思


AfterImageApply_BDB0C1E8-6951-46C4-AB7F-C07B29F462FD.cmd文件 和 ResetConfig.xml文件
大家帮忙看一下,这两个文件是什么意思??


AfterImageApply_BDB0C1E8-6951-46C4-AB7F-C07B29F462FD.cmd 内容如下:
rem Define %TARGETOS% as the Windows folder (This later becomes C:\Windows)
for /F "tokens=1,2,3 delims= " %%A in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RecoveryEnvironment" /v TargetOS') DO SET TARGETOS=%%C

rem Define %TARGETOSDRIVE% as the Windows partition (This later becomes C:)
for /F "tokens=1 delims=\" %%A in ('Echo %TARGETOS%') DO SET TARGETOSDRIVE=%%A

rem delete Windows.old\Users
rmdir /s /q \\?\%TARGETOSDRIVE%\Windows.old\Users

If EXIST %TARGETOSDRIVE%\Windows.old\Users (
rmdir /s /q \\?\%TARGETOSDRIVE%\Windows.old\Users
)

If EXIST %TARGETOSDRIVE%\Windows.old\Users (
rmdir /s /q \\?\%TARGETOSDRIVE%\Windows.old\Users
)

If EXIST %TARGETOSDRIVE%\Windows.old\Users (
rmdir /s /q \\?\%TARGETOSDRIVE%\Windows.old\Users
)

rem if folder still exists on the 4-th time, reboot to trigger a failure
If EXIST %TARGETOSDRIVE%\Windows.old\Users (
rem Windows.old\Users exist
wpeutil reboot
)

rem Deletion succeed

rem Check Auto Apply folder
set AUTOAPPLYFOLDER=%TARGETOSDRIVE%\Recovery\AutoApply

rem LayoutModification.xml
IF EXIST %AUTOAPPLYFOLDER%\LayoutModification.xml (
copy %AUTOAPPLYFOLDER%\LayoutModification.xml %TARGETOSDRIVE%\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml /Y
)

rem LayoutModification.json
IF EXIST %AUTOAPPLYFOLDER%\LayoutModification.json (
copy %AUTOAPPLYFOLDER%\LayoutModification.json %TARGETOSDRIVE%\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.json /Y
)

rem Unattend.xml
IF EXIST %AUTOAPPLYFOLDER%\Unattend.xml (
copy %AUTOAPPLYFOLDER%\Unattend.xml %TARGETOSDRIVE%\Windows\Panther\Unattend.xml /Y
)

rem Create Windows\OEM
IF not EXIST %TARGETOSDRIVE%\Windows\OEM (
mkdir %TARGETOSDRIVE%\Windows\OEM
)

rem TaskbarLayoutModification.xml
IF EXIST %AUTOAPPLYFOLDER%\TaskbarLayoutModification.xml (
copy %AUTOAPPLYFOLDER%\TaskbarLayoutModification.xml %TARGETOSDRIVE%\Windows\OEM\TaskbarLayoutModification.xml /Y
)

rem OOBE
IF EXIST %AUTOAPPLYFOLDER%\OOBE (
xcopy %AUTOAPPLYFOLDER%\OOBE %TARGETOSDRIVE%\Windows\System32\Oobe\Info\ /Y /S /E
)

rem TaskbarLayoutModification.xml
IF EXIST %AUTOAPPLYFOLDER%\CustomizationFiles (
xcopy %AUTOAPPLYFOLDER%\CustomizationFiles %TARGETOSDRIVE%\Windows\OEM\CustomizationFiles\ /S /E /Y
)

rem registry key changes for taskbar layout
IF EXIST %TARGETOSDRIVE%\Windows\OEM\TaskbarLayoutModification.xml (
reg load HKLM\$OfflineSoftware %TARGETOSDRIVE%\Windows\System32\config\Software
reg add HKLM\$OfflineSoftware\Microsoft\Windows\CurrentVersion\Explorer /v LayoutXMLPath /t REG_SZ /d %TARGETOSDRIVE%\Windows\OEM\TaskbarLayoutModification.xml
reg unload HKLM\$OfflineSoftware
)

rem exit
EXIT 0


ResetConfig.xml文件 内容如下:
<?xml version="1.0" encoding="utf-8"?><Reset> <Run Phase="FactoryReset_AfterImageApply"> <Path>AfterImageApply_BDB0C1E8-6951-46C4-AB7F-C07B29F462FD.cmd</Path> <Duration>2</Duration> </Run></Reset>




539931630 发表于 2025-1-2 19:26

看不懂,但希望有其他人来帮助你,抢沙发

uservke 发表于 2025-1-2 21:01

不用管了,这是品牌机的恢复出厂设置要使用的文件。

wen5841314520 发表于 2025-1-3 09:10

知识有限 看不懂

银狼驰骋 发表于 2025-1-3 09:13

uservke 发表于 2025-1-2 21:01
不用管了,这是品牌机的恢复出厂设置要使用的文件。

明白了

yj779ccj 发表于 2025-1-3 17:03

没格盘/安装?/升级系统?不然哪有Windows.old

银狼驰骋 发表于 2025-1-4 12:35

yj779ccj 发表于 2025-1-3 17:03
没格盘/安装?/升级系统?不然哪有Windows.old

新装的系统
页: [1]
查看完整版本: 安装Win10系统后,C盘下的文件,大家帮忙看一下是什么意思