<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Happy Live on Medium]]></title>
        <description><![CDATA[Stories by Happy Live on Medium]]></description>
        <link>https://medium.com/@happylive?source=rss-36fd662b9262------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*j_8XFZIkomIm5QJd.</url>
            <title>Stories by Happy Live on Medium</title>
            <link>https://medium.com/@happylive?source=rss-36fd662b9262------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 17:45:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@happylive/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Private Package เจ้าปัญหาของ Flutter]]></title>
            <link>https://happylive.medium.com/private-package-%E0%B9%80%E0%B8%88%E0%B9%89%E0%B8%B2%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%82%E0%B8%AD%E0%B8%87-flutter-8fa5babfc661?source=rss-36fd662b9262------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fa5babfc661</guid>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Happy Live]]></dc:creator>
            <pubDate>Thu, 07 Apr 2022 07:28:50 GMT</pubDate>
            <atom:updated>2022-04-07T07:28:50.571Z</atom:updated>
            <content:encoded><![CDATA[<p>หลายๆคนมักเกิดปัญหาเหมือนๆกันโดยเฉพาะการที่ต้องเขียน private package เอาไว้ใน internal ขององค์กร หรือ commercial software หรือแม้แต่การจะต้องป้องกัน code ในระดับ programmer ด้วยเหมือนกันว่าใครเข้าได้ถึงแค่ไหน</p><p>แน่นอนว่าการใช้ package เป็นสิ่งที่ดีมากแต่… ส่วนใหญ่จะเป็น public package และถ้าจะทำ private package จะทำอย่างไรได้บ้างละ</p><p>เนื่องจากที่บริษัทใช้ gitlab เป็นส่วนใหญ่จะเขียนในส่วน gitlab แต่คิดว่า github ก็คงไม่ต่างกัน แต่อาจจะใช้วิธีอื่นเช่น SSH แทน</p><p>สิ่งแรกที่เราต้อง set ก่อนใน gitlab คือการตั้งค่าของ deploy token<br>สามารถอ่านรายละเอียดวิธีการ set ค่าได้ตรงนี้ <a href="https://docs.gitlab.com/ee/user/project/deploy_tokens/">Deploy tokens | GitLab</a></p><p>แนะนำเพิ่มเติม จากรูปนี้ควรตั้งชื่อ username ไว้ด้วยเพราะเวลา create deploy token แล้วจะมีบางอักขระตัวอักษรจะไม่สามารถใช้งานได้ใน flutter แนะนำว่าตั้งไว้เถอะ อุ่นใจด้วย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IWLyj2GHHY3bnxwpaB8moA.png" /></figure><p>หลังจากเราทำการ สร้างเสร็จแล้ว ก็ทำการใส่ค่าใน pubspec</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*BNo0-xT09GGVyhQgvcXBHw.png" /></figure><p>จากตัวอย่าง</p><ol><li>bmi คือ package ที่จะเอาไว้เรียกใน project main ของเรา</li><li>git ตั้งไว้รู้ว่ามาจาก git</li><li>url ให้นำค่า user name และ pass word จาก deploy token มาใส่</li><li>ref มาจาก branch ใน git</li><li>path ตรงนี้มาจาก package ที่เราสร้างนั้นต้องการอ้างอิงไปตำแหน่งไหน</li></ol><p>หวังว่าจะช่วยคนที่ติดปัญหาแบบนี้เหมือนกันได้ ^^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fa5babfc661" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[เรื่องวุ่นๆของ Git (Lab)]]></title>
            <link>https://happylive.medium.com/%E0%B9%80%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87%E0%B8%A7%E0%B8%B8%E0%B9%88%E0%B8%99%E0%B9%86%E0%B8%82%E0%B8%AD%E0%B8%87-git-lab-1749e0f3f9fa?source=rss-36fd662b9262------2</link>
            <guid isPermaLink="false">https://medium.com/p/1749e0f3f9fa</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[gitlab]]></category>
            <dc:creator><![CDATA[Happy Live]]></dc:creator>
            <pubDate>Wed, 06 Apr 2022 09:16:20 GMT</pubDate>
            <atom:updated>2022-04-07T07:13:34.829Z</atom:updated>
            <content:encoded><![CDATA[<p>เนื่องจากจำเป็นต้องทำการ access เข้า git โดย ผ่าน ssh เพราะจำเป็นต้องใช้เป็น private repository เรื่องวุ่นก็เลยบังเกิดว่าจะต้องทำยังไง</p><p>ดังนั้นเลยไปลองหาวิธีการทำสรุปวิธีการทำมาได้ดังนี้</p><ol><li>Download Git มาก่อนสำหรับคนที่ยังไม่มี link <a href="https://gitforwindows.org/">Git for Windows</a> และไม่ต้องทำอะไรมาก next โล้ด</li><li>เปิด Git Bash ขึ้นมา</li><li>ใช้คำสั่ง cd ~/.ssh จะไปที่ root ของ ssh</li><li>ใช้คำสั่ง ssh-keygen -t rsa -C “emailที่สมัคร ของ gitlab เช่น abc@gmail.com” และกด enter</li><li>หลังจากนั้นเจอคำสั่ง Enter file in which to save the key ก็ไม่ต้องสนใจอะไร enter ผ่านไป</li><li>และก็จะเจออีกคำสั่ง Enter passphrase (empty for no passphrase): ก็ไม่ต้องสนใจอะไร enter ผ่านไปอีก</li><li>คราวนี้จะเจอข้อมูลลักษณะแบบนี้</li></ol><p>The key’s randomart image is:<br>+ — [ RSA 2048] — — +<br>| .oo. |<br>| . o.E |<br>| + . o |<br>| . = = . |<br>| = S = . |<br>| o + = + |<br>| . o + o . |<br>| . o |<br>| |<br>+ — — — — — — — — -+</p><p>8. พิมพ์คำสั่ง cat /c/users/ชื่อเครื่องของตัวเอง/.ssh/id_rsa.pub หรือจะไปที่ path นั้นบน window ได้เลย จะเป็น hidden folder อยู่ เปิดโดยใช้ notepad++ ก็จะได้ข้อมูลมาเช่นเดียวกัน โดยข้อมูลที่ได้จะอยู่ในลักษณะนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ptyaUY1SPAafZSZHm5RwXg.png" /></figure><p>9. ได้ข้อมูลมาแล้วไปที่ gitlab =&gt;Menu =&gt; Perferences =&gt; SSH Keys</p><p>10. เอาค่าจากข้อ 8 ไปใส่ ตั้งชื่ออะไรก็ได้ ส่วน expire ก็แล้วแต่ว่าต้องการให้ expire เมื่อไหร่ และก็ทำการ save</p><p>11. หลังจากนั้นเปิด VS Code และกด Ctrl + Shift + P และ พิมพ์คำว่า Git<br>และเอา git ที่เป็น ssh มาใส่และลองกด clone ดูก็จะสามารถทำได้</p><p>หวังว่าจะเป็นประโยชน์กับคนที่เพิ่งเริ่มใช้ ssh นะครับ</p><p>REF : แหล่งที่มา<br><a href="https://dev.to/sndrx/how-to-set-up-an-ssh-key-and-use-it-in-gitlab--42p1">How to set up an SSH key and use it for GitLab — DEV Community</a></p><p><a href="https://www.techoism.com/how-to-install-git-bash-on-windows/">https://www.techoism.com/how-to-install-git-bash-on-windows/</a></p><p><a href="https://www.youtube.com/watch?v=Vmt0V6a3ppE">https://www.youtube.com/watch?v=Vmt0V6a3ppE</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1749e0f3f9fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[วิธีลบ comment ตั้งต้นของ Flutter]]></title>
            <link>https://happylive.medium.com/%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%A5%E0%B8%9A-comment-%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B8%95%E0%B9%89%E0%B8%99%E0%B8%82%E0%B8%AD%E0%B8%87-flutter-b4053382850a?source=rss-36fd662b9262------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4053382850a</guid>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Happy Live]]></dc:creator>
            <pubDate>Sat, 17 Apr 2021 13:35:19 GMT</pubDate>
            <atom:updated>2021-04-17T15:05:11.620Z</atom:updated>
            <content:encoded><![CDATA[<p>ช่วงนี้เริ่มมาเขียน flutter เนื่องจาก Product ใหม่ๆที่ต้องทำมีความจำเป็นต้องเป็น cross platform มาขึ้น ดังนั้นช่วงนี้คงจะมีการ update เกี่ยวกับ flutter</p><p>เริ่มต้นสำหรับ flutter คงเป็นการแก้ไขในสิ่งที่น่าเบื่อในการ develop คง comment ของ flutter ที่ให้มาตั้งแต่เริ่มต้น วิธีการลบทำตามนี้ (อธิบายในส่วน VSCODE เป็นหลัก)</p><ol><li>ctrl + h</li><li>เลือก reg ex ตามรูป และใส่ //.*</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FedxvOWrXEj7PHPaIQ_q6g.png" /></figure><p>3. กด replace เท่านี้ comment กวนใจก็จะหายไป</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4053382850a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[วิธีการคำนวณ IOPS ของ gp3 ใน aws]]></title>
            <link>https://happylive.medium.com/%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%84%E0%B8%B3%E0%B8%99%E0%B8%A7%E0%B8%93-iops-%E0%B8%82%E0%B8%AD%E0%B8%87-gp3-%E0%B9%83%E0%B8%99-aws-e5ee38ef3258?source=rss-36fd662b9262------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5ee38ef3258</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ebs-volume]]></category>
            <dc:creator><![CDATA[Happy Live]]></dc:creator>
            <pubDate>Fri, 25 Dec 2020 04:34:04 GMT</pubDate>
            <atom:updated>2020-12-25T04:34:04.490Z</atom:updated>
            <content:encoded><![CDATA[<p>เนื่องจากต้องย้าย server ใหม่ และต้องการ save cost มากขึ้นและต้องการลองเปลี่ยนจาก io1 ซึ่งแพงมาก ย้ายลงมา gp3</p><p>สิ่งแรกที่ควรรู้ก่อนคือ IOPS ที่เราต้องการใช้นั้นอยู่ประมาณนั้นเท่าไหร่</p><ol><li>ควรหา VolumeReadOps และ VolumeWriteOps ใน cloud watch ใน Volume ที่ใช้งานก่อน ปกติที่ใช้จะใช้ max ของ 1 week</li><li>สมมติว่าใน aws เราดูได้ว่า VolumeReadOps = 30000 และ VolumeWriteOps = 15000 แสดงว่ามีการ read มากกว่า write</li><li>วิธีการคำนวณ เอา (30000 + 15000) / (เวลาที่ต้องการ access ได้ในขณะนั้น เช่นต้องการใช้เวลาไม่เกิน 5 นาที = 5*60 = 300</li><li>(30000 + 15000) / 300 = 150 IOPS</li><li>ทั้งนี้ผมจะบวกค่า IOPS เพิ่มอีก 1000 เสมอ เพราะการใช้งานจริง user จะมีมากขึ้นเรื่อยๆ</li><li>max iops ของ gp3 คือไม่เกิน 16000</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5ee38ef3258" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to backup and restore IIS another server and another IIS version]]></title>
            <link>https://happylive.medium.com/how-to-backup-and-restore-iis-another-server-and-another-iis-version-971882bda79d?source=rss-36fd662b9262------2</link>
            <guid isPermaLink="false">https://medium.com/p/971882bda79d</guid>
            <category><![CDATA[windows-server-2019]]></category>
            <category><![CDATA[isis]]></category>
            <category><![CDATA[windows-server-2012]]></category>
            <category><![CDATA[window-server]]></category>
            <category><![CDATA[windows-server-2012-r2]]></category>
            <dc:creator><![CDATA[Happy Live]]></dc:creator>
            <pubDate>Wed, 23 Dec 2020 05:55:30 GMT</pubDate>
            <atom:updated>2020-12-23T05:55:30.612Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I have a problem to change data in window server 2012 r2 to window server 2019</p><p>How to backup and restore IIS?<br>1. choose the backup raw file Physical Path in IIS</p><p>2. The new server (Window server 2019), please create name folder same old server</p><p>3. The old server (Window server 2012). please backup IIS</p><ul><li>run script in cmd</li></ul><pre>cd c:\Windows\system32\inetsrv</pre><pre>appcmd add backup filenamebackup_2020</pre><p>4. The new server(Window server 2019). please restore IIS</p><ul><li>Please copy filenamebackup_2020 to path c:\Windows\system32\inetsrv\backup</li><li>run script in cmd</li></ul><pre>cd c:\Windows\system32\inetsrv</pre><pre>appcmd restore backup /backup.name:&quot;filenamebackup_2020&quot; /stop:true</pre><p>Success… and Complete</p><p>References :</p><ul><li><a href="https://stackoverflow.com/questions/58953676/how-can-i-copy-all-iis-setting-configurations-application-pools-from-one-iis-b">How can I copy all IIS setting, configurations, application pools from one IIS box to another?</a></li><li><a href="https://www.saotn.org/iis-backup-and-restore/">IIS backup and restore</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=971882bda79d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reset Resharper shortcut in Visual Studio]]></title>
            <link>https://happylive.medium.com/reset-resharper-shortcut-in-visual-studio-ed1db7d179a5?source=rss-36fd662b9262------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed1db7d179a5</guid>
            <category><![CDATA[resharper]]></category>
            <dc:creator><![CDATA[Happy Live]]></dc:creator>
            <pubDate>Tue, 01 Dec 2020 07:55:06 GMT</pubDate>
            <atom:updated>2020-12-01T07:55:06.262Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I have a problem can’t use the shortcut in vs2015</p><p>How to reset Resharper shortcut?</p><p>Goto ReShaper <br> =&gt; Options</p><p>=&gt; Keyboard &amp; Menus</p><p>=&gt; Select Visual Studio</p><p>=&gt; Apply Scheme</p><p>=&gt; Save</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*aSpG7mmMK-aiu8mcQLp4pw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed1db7d179a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tunning MVC (Speed for first loading)]]></title>
            <link>https://happylive.medium.com/tunning-mvc-speed-for-first-loading-5fb09ea3753c?source=rss-36fd662b9262------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fb09ea3753c</guid>
            <category><![CDATA[web]]></category>
            <category><![CDATA[mvc]]></category>
            <category><![CDATA[dotnet]]></category>
            <dc:creator><![CDATA[Happy Live]]></dc:creator>
            <pubDate>Fri, 24 Jul 2020 13:01:57 GMT</pubDate>
            <atom:updated>2020-07-24T13:01:57.668Z</atom:updated>
            <content:encoded><![CDATA[<p>When you develop mvc3–5. you have a problem with when publishing to production the web site is slow when access first.</p><p>Step</p><ol><li>Edit file your .csproj (Text Edit)<br>- Change MvcBuildViews false =&gt; true</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*FjvuPd-DzCfTqdLdUlO1zA.png" /><figcaption>Change default false =&gt; true</figcaption></figure><p>2. (Optional you can use condition for debug and release)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IWpCCO5IPYHjNAaXP8T32g.png" /></figure><p>3. Find <strong>&lt;Target Name=”MvcBuildViews” AfterTargets=”AfterBuild” Condition=”’$(MvcBuildViews)’==’true’”&gt; </strong>and Replace</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xXczaSar1E1SrQF1QtlRXw.png" /></figure><p>4. When publish</p><ul><li>Settings and click Configure and click Merge all outputs to a single assembly</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*OlCsWvzSiotPOS5cZfdXtg.png" /><figcaption>In Merge all outpus to a single assembly you can insert your name for dll</figcaption></figure><p>5. Publish to iis and recheck (your web site increase speed)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fb09ea3753c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS : Web Deploy Could not complete the request to remote agent URL]]></title>
            <link>https://happylive.medium.com/aws-web-deploy-could-not-complete-the-request-to-remote-agent-url-10dfcbe9a692?source=rss-36fd662b9262------2</link>
            <guid isPermaLink="false">https://medium.com/p/10dfcbe9a692</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[isis]]></category>
            <category><![CDATA[webdev]]></category>
            <category><![CDATA[webdeploy]]></category>
            <dc:creator><![CDATA[Happy Live]]></dc:creator>
            <pubDate>Tue, 28 Apr 2020 06:04:22 GMT</pubDate>
            <atom:updated>2020-04-28T06:04:22.062Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS : Web Deploy Could not complete the request to remote agent URL</h3><p>Hi,</p><p>Today I have a problem when I use image aws after the master image I can’t publish my code to iis the error “Could not complete the request to remote agent URL” Why???</p><p>I try to research the error. I found solution.</p><p>The step please recheck for below.<br>1. server: use http only when you use ip please insert http://<br>ex. <a href="http://127.0.0.1/">http://127.0.0.1</a></p><p>2. Site Name: Must correct IIS Site Name</p><p>References :</p><ul><li><a href="https://stackoverflow.com/questions/10894671/msdeploy-fails-for-webdeploy">MsDeploy fails for webdeploy</a></li><li><a href="https://www.benday.com/2013/07/12/fix-error_could_not_connect_to_remotesvc-error-using-visual-studio-2012-web-deploy/">Fix: ASP.NET Web Deploy &#39;ERROR COULD NOT CONNECT TO REMOTESVC&#39; error</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10dfcbe9a692" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS : How to increase Elastic IP Address]]></title>
            <link>https://happylive.medium.com/aws-how-to-increase-elastic-ip-address-b83f418e982b?source=rss-36fd662b9262------2</link>
            <guid isPermaLink="false">https://medium.com/p/b83f418e982b</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[elastic-ip-address]]></category>
            <category><![CDATA[ec2]]></category>
            <dc:creator><![CDATA[Happy Live]]></dc:creator>
            <pubDate>Fri, 24 Apr 2020 05:25:11 GMT</pubDate>
            <atom:updated>2020-04-24T05:25:11.230Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS : How to increase Elastic IP Address</h3><p>This step</p><ol><li>Go to <a href="https://console.aws.amazon.com/servicequotas/">https://console.aws.amazon.com/servicequotas/</a></li><li>2. Select Amazon EC2</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aspt8AHReqG_7eqDgHRVDw.png" /></figure><p>3. Search IP and Select Elastic IP Address for EC2-Classic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*B7f3S0AFGV24peD2HC65oA.png" /></figure><p>4. Request quota increase<br>5. Change quota value</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b83f418e982b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS: Can’t get a window password when using custom AMIs.]]></title>
            <link>https://happylive.medium.com/aws-cant-get-a-window-password-when-using-custom-amis-bf8b089f575d?source=rss-36fd662b9262------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf8b089f575d</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Happy Live]]></dc:creator>
            <pubDate>Mon, 13 Apr 2020 07:03:35 GMT</pubDate>
            <atom:updated>2020-04-13T09:10:49.417Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone,</p><p>Today I must use load balance a new instance when I create new instance ec2 from AMIs i have a problem about “Password not available yet.&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*z_98fXixqJd_9XhmyIGL_Q.png" /></figure><p>What!!!!!!!!!!!!!!!!</p><p>Ok. I try to research how to access the new instance when to use custom AMIs the password is the same instance the prototype.</p><p>anyway, How to get a password for a new instance.</p><p>I research again i found it.</p><p>This is a step to get a new password for the new instance</p><p>Step 1: Before creating AMIs<br>1. Remote to a window in the prototype instance<br>2. From the Windows Start menu</p><ul><li>Windows Server 2008 through Windows Server 2012 R2, open EC2ConfigService Settings, and then choose the Image tab.</li><li>Windows Server 2016 or later, open EC2 Launch Settings.</li></ul><p>3. For Administrator Password, choose Random.<br>4. Choose Shutdown with Sysprep and click yes</p><p>5. Create new AMIs.</p><p>When lanch a new AMIs you can get a random password from AWS.</p><p>*if you use NVMe storage (ex r5d, c5d) the new drive is removed when shutdown please backup NVMe storage drive before creating new AMIs.</p><h3>References</h3><ul><li><a href="https://chowson.github.io/aws-retrieve-admin-password-from-windows-ami/">AWS: EC2 Password Retrieval of Windows AMI instance</a></li><li><a href="https://aws.amazon.com/premiumsupport/knowledge-center/sysprep-create-install-ec2-windows-amis/">Use Sysprep to Create and Install Custom Reusable Windows AMIs</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf8b089f575d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>