首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows 2012无人值守升级

Windows 2012无人值守升级
EN

Server Fault用户
提问于 2015-05-21 04:49:17
回答 2查看 3.8K关注 0票数 3

我刚开始使用windows服务器软件,目前我们正在使用windows server 2008 R2数据中心。我们想升级到2012服务器。

如何在windows服务器上执行无人值守的升级。我们没有这个服务器的物理访问权限。我已经找到了关于如何预置无人值守安装(磁盘擦除、非升级)的说明,但是我们如何升级呢?

EN

回答 2

Server Fault用户

发布于 2016-12-09 16:09:11

按照上述建议,我就是这样做的。

  1. 在虚拟机中安装了WindowsServer2008R2的演示版本。
  2. 获得windows server 2012R2的演示版本。
  3. 跟进本文windows-server-2012-无人值守 (必须添加一些调整来添加IP)

将此站点用作其他属性的引用:windows-server-2012-automated-install-settings

我可以从RDP会话自动将Windows2008R2升级到2012R2。

简言之,这些步骤是:

  1. 搜索Windows (评估和部署工具包) (adksetup.exe至少8.100.26866版)
  2. 运行安装时,选择部署工具和Windows预安装环境(Windows )。
  3. 一旦安装打开: Windows系统图像管理器。(从“开始”菜单中)
  4. 您需要访问国际标准化组织并找到install.wim源文件(通常在:iso\ source中)
  5. 在创建映像时,需要选择要使用的OS版本。
  6. 一旦映像就绪,您将需要开始向configuration.添加不同的设置,复制配置示例,并根据需要将其命名为Autounattend.xml更新(使用工具或使用推荐的工具)以执行所需的升级:窗口源\setup.exe /unattend:"\path\O.S\Autounattend.xml“。

配置示例

代码语言:javascript
复制
<?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>mysuperComputer</ComputerName>
            <ProductKey>123-1234-12345-12345-XXXX</ProductKey>
            <RegisteredOrganization>Somewhere</RegisteredOrganization>
            <RegisteredOwner>Me</RegisteredOwner>
            <TimeZone>Pacific Standard Time</TimeZone>
        </component>
        <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" 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">
            <fDenyTSConnections>false</fDenyTSConnections>
        </component>
    </settings>
    <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>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>en-US</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</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">
            <UserData>
                <ProductKey>
                    <Key>123-1234-12345-12345-XXXX</Key>
                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
                <FullName>Me</FullName>
                <Organization>Me</Organization>
            </UserData>
            <ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key> /IMAGE/NAME</Key>
                            <Value>Windows Server 2012 SERVERSTANDARD</Value>
                        </MetaData>
                        <Path>\\SOMESERVER\Windows Server\install.wim</Path>
                    </InstallFrom>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>1</PartitionID>
                    </InstallTo>
                </OSImage>
            </ImageInstall>
            <DiskConfiguration>
                <WillShowUI>OnError</WillShowUI>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>1000</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Extend>true</Extend>
                            <Format>NTFS</Format>
                            <Letter>C</Letter>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
            </DiskConfiguration>
            <WindowsDeploymentServices>
                <Login>
                    <Credentials>
                        <Password>thisisasecret</Password>
                        <Username>Administrator</Username>
                    </Credentials>
                </Login>
            </WindowsDeploymentServices>
            <UpgradeData>
                <Upgrade>false</Upgrade>
            </UpgradeData>
        </component>
        <component name="Microsoft-Windows-TCPIP" 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">
            <Interfaces>
                <Interface wcm:action="add">
                    <Ipv4Settings>
                        <DhcpEnabled>true</DhcpEnabled>
                    </Ipv4Settings>
                    <Identifier>1</Identifier>
                </Interface>
            </Interfaces>
        </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">
            <RegisteredOrganization>-</RegisteredOrganization>
            <RegisteredOwner>-</RegisteredOwner>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:c:/temp/install.wim#Windows Server 2012 R2 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
票数 1
EN

Server Fault用户

发布于 2016-12-09 19:01:35

我只需将ISO的内容复制到桌面上,并以简单的升级模式运行安装程序,就可以将我的任何服务器2008R2 DC服务器升级到2012R2 DC。我知道它不是无人值守的,但你会一直保持连接,直到它需要重新启动。等大约5分钟,你就可以返回RDP了。

您将希望确保您的Windows更新是最新的,首先。我不建议在生产服务器上这样做,除非您首先有备份,并且有足够的维护窗口用于备份恢复,以防最坏的情况发生。

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

https://serverfault.com/questions/693487

复制
相关文章

相似问题

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