- 积分
- 201
- 最后登录
- 2020-5-9
- 精华
- 0
- 阅读权限
- 30
- 主题
- 29
- UID
- 2709373
- 帖子
- 427
- PB币
- 1210
- 威望
- 5
- 贡献
- 0
- 技术
- 3
- 活跃
- 573
- UID
- 2709373
- 帖子
- 427
- PB币
- 1210
- 贡献
- 0
- 技术
- 3
- 活跃
- 573
|
5F
发表于 2013-11-19 22:43:22
IP属地江苏
|只看该作者
micromoon 发表于 2013-11-19 22:32
setupcomplete :安装 Windows 之后(但在登录屏幕显示之前)执行
FirstLogonCommands :具管理权限的用户首 ...
嗯,多谢了.然后再问您一下,怎么样实现在windowspe和offlineserviceing阶段使用AutoUnattend.xml而在其它阶段使用unattend.xml,我在install.wim中内置了unattend而在iso根目录下放置了autounattend,本意是想通过autounattend配置刚开始的选择语言等pe阶段设置,用unattend配置其他阶段,却发现如果用iso里的setup安装的话unattend不起作用了,用系统安装器安装的话unattend才起作用,请问该怎么实现我的目的??
autounattend内容:- <?xml version="1.0" encoding="utf-8"?>
- <unattend xmlns="urn:schemas-microsoft-com:unattend">
- <settings pass="windowsPE">
- <component name="Microsoft-Windows-International-Core-WinPE" 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">
- <SetupUILanguage>
- <UILanguage>zh-CN</UILanguage>
- </SetupUILanguage>
- <InputLocale>zh-CN</InputLocale>
- <SystemLocale>zh-CN</SystemLocale>
- <UILanguage>zh-CN</UILanguage>
- <UserLocale>zh-CN</UserLocale>
- </component>
- <component name="Microsoft-Windows-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">
- <ImageInstall>
- <OSImage>
- <InstallToAvailablePartition>false</InstallToAvailablePartition>
- <WillShowUI>OnError</WillShowUI>
- </OSImage>
- </ImageInstall>
- <UserData>
- <ProductKey>
- <WillShowUI>OnError</WillShowUI>
- <Key>XHQ8N-C3MCJ-RQXB6-WCHYG-C9WKB</Key>
- </ProductKey>
- <AcceptEula>true</AcceptEula>
- <FullName>Windows</FullName>
- <Organization>WORKGROUP</Organization>
- </UserData>
- </component>
- </settings>
- <cpi:offlineImage cpi:source="wim:e:/install.wim#Windows 8.1 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
- </unattend>
复制代码 unattend内容:
- <?xml version="1.0" encoding="utf-8"?>
- <unattend xmlns="urn:schemas-microsoft-com:unattend">
- <settings pass="specialize">
- <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">
- <ComputerName></ComputerName>
- </component>
- <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>3</Order>
- <Description>Enable FirstLogon As Admin</Description>
- <Path>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%WINDIR%\Setup\Scripts\FirstLogon.cmd" /t REG_SZ /d "RUNASADMIN" /f</Path>
- </RunSynchronousCommand>
- <RunSynchronousCommand wcm:action="add">
- <Order>4</Order>
- <Description>Comp Flags for setupcomplete.cmd</Description>
- <Path>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%WINDIR%\Setup\Scripts\setupcomplete.cmd" /t REG_SZ /d RUNASADMIN /f</Path>
- </RunSynchronousCommand>
- </RunSynchronous>
- </component>
- <component name="Microsoft-Windows-IE-InternetExplorer" 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">
- <SearchScopes>
- <Scope wcm:action="add">
- <ScopeDefault>true</ScopeDefault>
- <ScopeDisplayName>百度搜索</ScopeDisplayName>
- <ScopeKey>百度搜索</ScopeKey>
- <ScopeUrl>http://www.baidu.com/s?ie=utf-8&word={searchTerms}</ScopeUrl>
- </Scope>
- </SearchScopes>
- <DisableFirstRunWizard>true</DisableFirstRunWizard>
- <Home_Page>http://www.hao123.com/</Home_Page>
- <BlockPopups>yes</BlockPopups>
- </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">
- <FirstLogonCommands>
- <SynchronousCommand wcm:action="add">
- <Description>Post Setup OEM</Description>
- <Order>99</Order>
- <CommandLine>cmd /c %WINDIR%\Setup\Scripts\FirstLogon.cmd</CommandLine>
- </SynchronousCommand>
- </FirstLogonCommands>
- <OOBE>
- <HideEULAPage>true</HideEULAPage>
- <NetworkLocation>Work</NetworkLocation>
- <ProtectYourPC>1</ProtectYourPC>
- <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
- <HideLocalAccountScreen>false</HideLocalAccountScreen>
- <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
- </OOBE>
- <TimeZone>China Standard Time</TimeZone>
- </component>
- <component name="Microsoft-Windows-International-Core" 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">
- <InputLocale>zh-CN</InputLocale>
- <SystemLocale>zh-CN</SystemLocale>
- <UILanguage>zh-CN</UILanguage>
- <UILanguageFallback>en-US</UILanguageFallback>
- <UserLocale>zh-CN</UserLocale>
- </component>
- </settings>
- <cpi:offlineImage cpi:source="wim:e:/install.wim#Windows 8.1 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
- </unattend>
复制代码 有点长,还请见谅!
|
|