How to update windows server 2012

Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Perform an in-place upgrade of Windows Server

  • Article
  • 09/19/2022
  • 3 minutes to read

In this article

An in-place upgrade allows you to go from an older operating system to a newer one while keeping your settings, server roles, and data intact. This article will teach you how to move to a later version of Windows Server using an in-place upgrade.

Prerequisites

Before you start upgrading, your computer must meet the following requirements:

  • Determine which version of Windows Server to upgrade to.
  • The hardware meets or exceeds the hardware requirements for Windows Server.
  • The install media is ready to use.
  • A valid product key and activation method are available. Keys and methods may depend based on the distribution channel that you received Windows Server media from, for example, a Commercial Licensing program, Retail, Original Equipment Manufacturer (OEM), and so on.
  • PowerShell 5.1 or later.
  • A location to store files away from your computer. For example, a USB flash drive or network location.
  • Review the upgrade and migrate roles and features in Windows Server article.
  • Review the Microsoft server applications compatibility article.
  • Review any third party application vendors support requirements.

Collect diagnostic information

We recommend that you collect some information from your devices for diagnostic and troubleshooting purposes in case the upgrade is unsuccessful. We also recommend you store the information somewhere you can get to even if you can't access your device.

To collect your information:

  1. Open an elevated PowerShell prompt, make a note of your current directory, and run the following commands.

    Get-ComputerInfo -Property WindowsBuildLabEx,WindowsEditionID | Out-File -FilePath .\computerinfo.txt
    systeminfo.exe | Out-File -FilePath systeminfo.txt
    ipconfig /all | Out-File -FilePath ipconfig.txt
    
  2. Using File Explorer, navigate to the directory you noted down, and copy the files to a USB flash drive or network location off of your computer.

Tip

Get-ComputerInfo requires PowerShell 5.1 or later. If your Windows Server version doesn't include Powershell you can find this information in the registry. Open Registry Editor, go to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion key, and then copy and paste the Windows Server BuildLabEx and EditionID values.

After you've collected all of your Windows Server-related information, we recommend that you backup your server operating system, apps, and virtual machines. You must also shut down, quick migrate, or live migrate any virtual machines currently running on the server. You can't have any virtual machines running during the in-place upgrade.

Perform the upgrade

Now you've completed your prerequisites and collected diagnostic information, you're ready to perform the upgrade. In this section, you'll use the Windows Server Setup to select the settings for the upgrade. Windows Server Setup will use these settings to upgrade your version of Windows Server, during which time your computer will restart several times.

To perform the in-place upgrade:

  1. Using File Explorer, navigate to the Windows Server Setup media. Then open setup.exe. For example, if you're using removal media the file path might be D:\setup.exe.

    Important

    Depending on your security settings, User Account Control may prompt you to allow setup to make changes to your device. If you're happy to continue select Yes.

  2. By default, setup will automatically download updates for the installation. If you're okay with the default settings, to continue select Next.

    If you don't want Setup to automatically download updates:

    • Select Change how Setup downloads updates, choose the option appropriate to your environment, then select Next.
  3. If prompted, enter your product key, then select Next.

  4. Select the edition of Windows Server you want to install, then select Next.

  5. Review the applicable notices and license terms, if you agree to the terms, select Accept.

  6. Select Keep personal files and apps to choose to do an in-place upgrade, then select Next.

  7. After Setup finishes analyzing your device, setup will display the Ready to install screen, to continue the upgrade select Install.

The in-place upgrade will start, and you should see a progress bar. After the upgrade finishes, your server will restart.

Checking if your upgrade was successful

After the upgrade to Windows Server is done, you must make sure the upgrade was successful.

To make sure your upgrade was successful:

  1. Open an elevated PowerShell prompt, run the following command to verify the version and edition matches the media and values you selected during setup.

    Get-ComputerInfo -Property WindowsProductName
    
  2. Make sure all of your applications are running and that your client connections to the applications are successful.

If your computer isn't working as expected after the upgrade, you can contact Microsoft Support for technical assistance.

Next steps

Now that you've upgraded Windows Server, here are some articles that might help you as you use the new version:

  • Install or Uninstall Roles, Role Services, or Features
  • Windows Server management overview
  • Get Started with Windows Admin Center
  • Key Management Services (KMS) activation planning
  • Activate using Active Directory-based activation

If you'd like to learn more about deploying, post-installation configuration and activation options, check out the Windows Server deployment, configuration, and administration learning path.

Feedback

Submit and view feedback for

Does Windows Server 2012 still get updates?

SQL Server 2012 will reach the end of support on July 12, 2022, and Windows Server 2012/2012 R2 will reach the end of support on October 10, 2023. After this date, these products will no longer receive security updates, non-security updates, bug fixes, or technical support.

Can I upgrade directly from Windows Server 2012 R2 to 2019?

For instance, Windows 2012 R2 Server can be upgraded directly to 2019 server or first to 2016 server and then to 2019 server.

Can you upgrade Server 2012R2 to 2022?

2012R2->2019->2022 is an allowed path using inplace-upgrades (this does not require a server 2019 license). Normally, forums are full of warnings "don't you dare to inplace-upgrade", while my experience is very good (do that all the time).

What is the latest version of Windows Server 2012 R2?

Windows Server 2012 R2.