- 积分
- 201
- 最后登录
- 2020-5-9
- 精华
- 0
- 阅读权限
- 30
- 主题
- 29
- UID
- 2709373
- 帖子
- 427
- PB币
- 1210
- 威望
- 5
- 贡献
- 0
- 技术
- 3
- 活跃
- 573
- UID
- 2709373
- 帖子
- 427
- PB币
- 1210
- 贡献
- 0
- 技术
- 3
- 活跃
- 573
|
发表于 2013-11-17 11:14:52
IP属地江苏
|显示全部楼层
以下是无约而来的自动应答文件,默认启用内置管理员账号,我要怎么更改才能在部署时由用户手动设置账户而不是默认用内置管理员账号
- <?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>
- <RunSynchronousCommand wcm:action="add">
- <Description>Enable Admin Account</Description>
- <Order>5</Order>
- <Path>net user administrator /active:yes</Path>
- </RunSynchronousCommand>
- </RunSynchronous>
- </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">
- <AutoLogon>
- <Enabled>true</Enabled>
- <LogonCount>1</LogonCount>
- <Username>Administrator</Username>
- </AutoLogon>
- <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>Home</NetworkLocation>
- <ProtectYourPC>1</ProtectYourPC>
- <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
- <HideLocalAccountScreen>true</HideLocalAccountScreen>
- <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
- </OOBE>
- <TimeZone>China Standard Time</TimeZone>
- <UserAccounts>
- <LocalAccounts>
- <LocalAccount wcm:action="add">
- <Description>Default Administrator Account</Description>
- <DisplayName>Administrator</DisplayName>
- <Group>Administrators</Group>
- <Name>Administrator</Name>
- </LocalAccount>
- </LocalAccounts>
- </UserAccounts>
- </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:/win8x64/sources/install.wim#Windows 8" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
- </unattend>
复制代码
|
|