Upgrade EC2 windows server 2012 R2 to 2019

Upgrade EC2 windows server 2012 R2 to 2019


 
Upgrade EC2 windows server 2012 R2 to 2019 


  1. Create the AMI of the server which you plan to upgrade. 
  2. C drive should have 20GB free space available. 
  3. 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. 
  4. Check PV driver version. If it is not using latest version then update it. 
  5. Uninstall EC2 config service from control panel. 
  6. Then delete the folder EC2 config service and SSM from folder program files and program data. 


  1. Note: Program data in hidden folder. 
  2. 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. 

  1. Right click on install.ps1 then click edit. Click Run button. 
  2. Go to your AWS console. 
  3. Go to snapshot. 
  4. In snapshot change it to public snapshot. 
  5. Search Windows 2019 Installation Media. 
  6. Then create volume from that snapshot and attached it to the server. 
  7. Mount that volume inside the server than you will see the D drive inside the server. 
  8. Open PowerShell 
  9. Run- cd d:/ 
  10. Run- .\Name-of-file-inside-the-D-drive /auto upgrade. 
  11. Pop will open then click setup.exe. 
  12. It will start upgrade the server. 



Note: Sometimes it will give error of Telnet Server role. We need to uninstall this. 




For reference there is video link below. 

https://www.youtube.com/watch?v=rImpKT7lHNI



Best Regards,

Maulik Parmar

Cloud Engineer

Ph: +91 9727868618