diff --git a/README.md b/README.md index 35f1a45..78d8374 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,23 @@ Driver 373.06 is the latest driver version that has the K520 included in the dev - Restart Windows and attach a VNC session (`ec2gaming vnc`) - Right-click the desktop, select Screen resolution and select the highest available resolution +## Image cleanup + +Before creating an AMI, Amazon recommends deleting temporary files, defragmenting your hard drive, and zeroing out free space to reduce start times. This step is pretty time consuming and you can come back and do this at any time, so it's a good idea to wait until you're confident your image is in a good baseline state before you do this step. Reducing the size of your snapshot will also keep you in the free tier, and keeping free space high means you won't run into the remote install limitation mentioned above. + +### Free Space + + - Follow the `Dism.exe` steps in this article to clean up the WinSxS to free space: https://technet.microsoft.com/en-us/library/dn251565.aspx + - Use WinDirStat to look for other low hanging fruit, such as temporary files, installers, logs, etc. + +### Defragment + +- Optimize `C:\` with the defragmenter tool. + +### Zero free space + +- Run https://technet.microsoft.com/en-us/sysinternals/sdelete.aspx with the `-z` parameter + ## Final steps - Run `ec2gaming snapshot` to snapshot the EBS volume and create your AMI diff --git a/ec2gaming.bat.template b/ec2gaming.bat.template index f2c829b..9b9593c 100644 --- a/ec2gaming.bat.template +++ b/ec2gaming.bat.template @@ -4,4 +4,4 @@ md Z:\SteamLibrary\steamapps cmd /c mklink /j "C:\Program Files (x86)\Steam\steamapps" Z:\SteamLibrary\steamapps md Z:\Documents aws s3 sync Z:\Documents s3://BUCKET/Documents -schtasks /Create /RU USERNAME /RP PASSWORD /SC MINUTE /MO 1 /TN "Sync Documents with S3" /TR "aws s3 sync Z:\Documents s3://ec2gaming-639801188054/Documents --delete" +schtasks /Create /RU USERNAME /RP PASSWORD /F /SC MINUTE /MO 1 /TN "Sync Documents with S3" /TR "aws s3 sync Z:\Documents s3://ec2gaming-639801188054/Documents --delete"