|
把几个无人值守文件综合变为一个,一直出错,求大神帮修改一下
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>系统部署阶段执行的批处理文件</Description>
<Path>cmd /c if exist "%SystemRoot%\Setup\Scripts\zhaopian.cmd" %SystemRoot%\Setup\Scripts\zhaopian.cmd</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>系统部署阶段执行的批处理文件</Description>
<Path>cmd /c if exist "%SystemRoot%\Setup\Scripts\specialize.cmd" %SystemRoot%\Setup\Scripts\specialize.cmd</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OEMInformation>
<HelpCustomized>false</HelpCustomized><!--计算机属性中OEM信息的显示样式,false为传统样式,true为新样式,例如"<HelpCustomized>true</HelpCustomized>"-->
<Manufacturer>中国微软</Manufacturer><!--计算机属性中显示的制造商名称,例如"<Manufacturer>Lenovo</Manufacturer>"-->
<SupportURL></SupportURL><!--计算机属性中显示的制造商网页,例如"<SupportURL>http://support.lenovo.com.cn</SupportURL>"-->
<Model>中国微软</Model><!--计算机属性中显示的计算机型号,例如"<Model>Ideapad Z580</Model>"-->
<Logo></Logo><!--计算机属性中显示的制造商LOGO,例如"<Logo>c:\windows\System32\OOBE\info\Lenovo_logo.bmp</Logo>",没有的话请留空-->
<!--LOGO图建议先用网上的OEM信息修改工具测试下效果,不是随便链接一个图就可以正常显示的-->
</OEMInformation>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OOBE>
<SkipMachineOOBE>true</SkipMachineOOBE>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
<TimeZone>China Standard Time</TimeZone>
<StartPanelOff>false</StartPanelOff>
<ShowWindowsLive>false</ShowWindowsLive>
<RegisteredOwner></RegisteredOwner>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
<DisableAutoDaylightTimeSet>true</DisableAutoDaylightTimeSet>
<BluetoothTaskbarIconEnabled>true</BluetoothTaskbarIconEnabled>
<RegisteredOrganization>Microsoft</RegisteredOrganization>
<FirstLogonCommands>
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>3</Order>
<Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
<RunSynchronousCommand wcm:action="add">
<Order>4</Order>
<Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1 /f</Path>
<RunSynchronousCommand wcm:action="add">
<Order>5</Order>
<Path>reg add HKLM\SYSTEM\Setup\MoSetup /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 /f</Path>
</RunSynchronous>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" language="neutral" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v BypassNRO /t REG_DWORD /d 1 /f</Path>
</FirstLogonCommands>
</component>
</settings>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order><!--以下为设置密码永不过期-->
<RequiresUserInput>false</RequiresUserInput>
<CommandLine>net accounts /maxpwage:unlimited</CommandLine>
<Description>Password Never Expires</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order><!--此项为执行顺序,对应的命令会按照由小到大的顺序执行-->
<Description>桌面建立"此电脑"图标</Description>
<CommandLine>cmd /c reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /d 0 /t REG_DWORD /f</CommandLine>
</SynchronousCommand>
<!--以下为桌面建立"用户文件夹"图标-->
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<Description>桌面建立"用户文件夹"图标</Description>
<CommandLine>cmd /c reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /d 0 /t REG_DWORD /f</CommandLine>
</SynchronousCommand>
<!--以下为设置电源选项,接通电源情况下将电源按钮功能设置为"关机"-->
<SynchronousCommand wcm:action="add">
<Order>4</Order>
<Description>接通电源情况下将电源按钮功能设置为"关机"</Description>
<CommandLine>cmd /c %systemroot%\system32\powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 3</CommandLine>
</SynchronousCommand>
<!--以下为太阳谷-->
<SynchronousCommand wcm:action="add">
<Order>5</Order>
<Description>太阳谷</Description>
<CommandLine>cmd /c if exist "%SystemRoot%\Setup\Scripts\Icon.exe" ("%SystemRoot%\Setup\Scripts\Icon.exe" /S) </CommandLine>
</SynchronousCommand>
<!--以下为win11设置win10右键菜单-->
<SynchronousCommand wcm:action="add">
<Order>6</Order>
<Description>win11设置win10右键菜单</Description>
<CommandLine>cmd /c reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve </CommandLine>
</SynchronousCommand>
<!--以下为全盘搜索软件安装-->
<SynchronousCommand wcm:action="add">
<Order>7</Order>
<Description>软件安装</Description>
<CommandLine>cmd /c start %SystemRoot%\Setup\Scripts\Setup.cmd </CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<DisplayName>admin</DisplayName><!--设置显示出来的用户名;此项不要设置为administrator-->
<Name>admin</Name><!--设置实际用户名-->
<!--如果DisplayName项设为A此项设为B,那么登录时显示的用户名为B,但是它的目录则为"C:\Users\A",因此建议这两项保持一致;此项不要设置为administrator-->
<Group>Administrators</Group><!--设置用户组为管理员-->
<Description>设置管理员账户名称</Description>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:x:/x.wim#Windows x" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend> |
|