首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows 7无人值守的安装--不是真正的“无人值守”

Windows 7无人值守的安装--不是真正的“无人值守”
EN

Server Fault用户
提问于 2012-03-07 15:05:09
回答 3查看 6.3K关注 0票数 3

几天来,我一直在尝试为Windows 7获取一个正确和工作的Unattended.xml应答文件。试图创建一个完全无人值守的Windows 7安装,在这里,技术人员可以插入USB驱动器,从它启动,并等待安装完成。我正在工作的图像已经与无人值守的应答文件进行了整合,此后的每一次更改都是如此。这是一个耗时的过程,因为WDS/Server安装不是一个选项,只有这种预置USB设备的方法。

我曾经访问过technet、Server断层(和其他StackExchange站点)、随机博客和尝试不同应答文件选项的站点,这些选项(应该/据说)会创建一个完全无人参与的安装。

使用WSIM管理/写/修改/检查应答文件,使用DISM管理映像。

无论我在WinPE pass中输入了哪些选项,都会发生以下情况:

  • 体育要求语言/地区/
  • PE显示EULA协议
  • PE磁盘配置总是显示,提示分区。

我需要安装程序才能开始、处理和完成,而无需询问用户任何

我拥有的最新XML应答文件如下:

代码语言:javascript
复制
<?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="x86" 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>en-us</UILanguage>
        </SetupUILanguage>
        <UILanguage>en-us</UILanguage>
        <InputLocale>0409:00000409</InputLocale>
        <SystemLocale>en-us</SystemLocale>
        <UserLocale>en-us</UserLocale>
    </component>
    <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <DiskConfiguration>
        <WillShowUI>OnError</WillShowUI>
        <Disk wcm:action="add">
        <DiskID>0</DiskID>
            <WillWipeDisk>true</WillWipeDisk>
            <CreatePartitions>
            <CreatePartition wcm:action="add">
            <Order>1</Order>
            <Size>100</Size>
                <Type>Primary</Type>
            </CreatePartition>
         <CreatePartition wcm:action="add">
            <Order>2</Order>
                <Type>Primary</Type>
                <Extend>true</Extend>
            </CreatePartition>
            </CreatePartitions>
            <ModifyPartitions>
            <ModifyPartition wcm:action="add">
                <Format>NTFS</Format>
                <Label>System</Label>
                <Order>1</Order>
            <Active>true</Active>
                <PartitionID>1</PartitionID>
            </ModifyPartition>
            <ModifyPartition wcm:action="add">
                <Format>NTFS</Format>
                <Label>OS</Label>
                <Order>2</Order>
                <PartitionID>2</PartitionID>
            </ModifyPartition>
            </ModifyPartitions>
        </Disk>
        </DiskConfiguration>
        <ImageInstall>
        <OSImage>
            <InstallTo>
            <DiskID>0</DiskID>
            <PartitionID>1</PartitionID>
            </InstallTo>
        <InstallFrom>
            <MetaData wcm:action="add">
                <Key>/IMAGE/INDEX</Key>
                <Value>1</Value>
            </MetaData>
            </InstallFrom>
            <WillShowUI>OnError</WillShowUI>
        </OSImage>
        </ImageInstall>
        <UserData>
          <AcceptEula>true</AcceptEula>
        <ProductKey>
            <Key>----</Key>
            <WillShowUI>----</WillShowUI>
        </ProductKey>
        <FullName>----</FullName>
        <Organization>----</Organization>
        </UserData>
    </component>
    </settings>
    <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <CopyProfile>true</CopyProfile>
        <TimeZone>----</TimeZone>
        <ProductKey>----</ProductKey>
        <RegisteredOrganization>----</RegisteredOrganization>
        <RegisteredOwner>----</RegisteredOwner>
    </component>
    <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" 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">
            <Path>net user administrator /active:yes</Path>
            <Order>1</Order>
        </RunSynchronousCommand>
        </RunSynchronous>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" 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>0409:00000409</InputLocale>
        <SystemLocale>en-us</SystemLocale>
        <UILanguage>en-us</UILanguage>
        <UserLocale>en-us</UserLocale>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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>
        <HideEULAPage>true</HideEULAPage>
        <NetworkLocation>Work</NetworkLocation>
        <ProtectYourPC>1</ProtectYourPC>
        <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        </OOBE>
        <RegisteredOrganization>----</RegisteredOrganization>
        <RegisteredOwner>----</RegisteredOwner>
        <TimeZone>TZ</TimeZone>
        <UserAccounts>
        <AdministratorPassword>
            <Value>aBcDe</Value>
            <PlainText>false</PlainText>
        </AdministratorPassword>
        <LocalAccounts>
            <LocalAccount wcm:action="add">
            <Password>
                <Value>aBcDe</Value>
                <PlainText>false</PlainText>
            </Password>
            <Description>Local Administrator</Description>
            <DisplayName>Administrator</DisplayName>
            <Group>Administrators</Group>
            <Name>Administrator</Name>
            </LocalAccount>
        </LocalAccounts>
        </UserAccounts>
        <AutoLogon>
        <Password>
            <Value>aBCdE</Value>
            <PlainText>false</PlainText>
        </Password>
        <Enabled>true</Enabled>
        <LogonCount>5</LogonCount>
        <Username>administrator</Username>
        <Domain></Domain>
        </AutoLogon>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" 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>0409:00000409</InputLocale>
        <SystemLocale>en-us</SystemLocale>
        <UserLocale>en-us</UserLocale>
        <UILanguage>en-us</UILanguage>
    </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:wimfile#Windows 7 Professional" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

是否有其他人对这种情况有经验,或者知道如何纠正我的答复文件,使它真正成为无人关心的?

EN

回答 3

Server Fault用户

回答已采纳

发布于 2012-03-08 15:03:05

我已经解决了这个问题,把unattend.xml放在USB驱动器的根上,并将它重命名为autounattend.xml。更改之后,Windows 7的设置将无人参与,因为我被引导相信它应该这么做,unattend.xml位于install.wim的sysprep目录中。

票数 1
EN

Server Fault用户

发布于 2012-03-07 15:09:14

您是否尝试过下载xml,所以您不必手动编辑MDT文件?

票数 1
EN

Server Fault用户

发布于 2012-03-07 17:17:23

当我开始使用Win 7图片时,我使用了这个指南,发现它非常有用:http://theitbros.com/sysprep-a-windows-7-machine-%E2%80%93-start-to-finish

如果我还记得sysprep时,它会将xml复制到system32文件夹中的某个位置,并将该副本用于安装的其余部分。

把我的手机发出去,如果关机的话。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/367245

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档