Upgrade EC2 windows server 2012 R2 to 2019
- Create the AMI of the server which you plan to upgrade.
- C drive should have 20GB free space available.
- If you are upgrading the server 2012 or 2012 R2 to windows server 2016, 2019 or 2022 perform the following activities on your instance before upgrading.
- Check PV driver version. If it is not using latest version then update it.
- Uninstall EC2 config service from control panel.
- Then delete the folder EC2 config service and SSM from folder program files and program data.
- Note: Program data in hidden folder.
- Install latest version EC2 launch from the below URL.
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch-download.html
In this URL you need to download “EC2-windows-Launch.zip” and “install.ps1” inside the server. Download this both in same path.
- Right click on install.ps1 then click edit. Click Run button.
- Go to your AWS console.
- Go to snapshot.
- In snapshot change it to public snapshot.
- Search Windows 2019 Installation Media.
- Then create volume from that snapshot and attached it to the server.
- Mount that volume inside the server than you will see the D drive inside the server.
- Open PowerShell
- Run- cd d:/
- Run- .\Name-of-file-inside-the-D-drive /auto upgrade.
- Pop will open then click setup.exe.
- It will start upgrade the server.
Note: Sometimes it will give error of Telnet Server role. We need to uninstall this.
Best Regards,
Maulik Parmar
Cloud Engineer
Ph: +91 9727868618