I thought what else we could do with it, and I have got an idea to use it as AWS Automation Bot to perform simple tasks. I have created a set of instructions for a Bot using PowerShell script which we could use to perform the following tasks instantly instead of doing it from AWS console.
Getting instance details using instance name.
Getting attached volume details using instance name.
Getting list of the available snapshots for a instances using instance name.
Getting the console screenshot for troubleshooting using instance name.
Getting the console log for troubleshooting using instance name.
As mentioned earlier, we could reset the local admin password of windows instances via registry, but unfortunately that will not going to help us if we forget the user id details or we renamed the user id. And the good news is, we still will be able to logon into the system by creating one new Admin Account using AWS User Data. This process is very simple as described bellow.
You have to re-attached the root volume of faulty system to a working AWS instances.
Now, you have to use EC2Rescue to enable user data (Ec2HandelUserData), which will execute a script on next boot. (*This could be done by editing config.xml file of EC2Config)
Once done, you have to re-attach the volume to the original system as root (/dev/sda1) volume.
Now, from AWS EC2 Console, you have to select the server and edit the User Data before starting the server and add the following PowerShell script. This script will create a Admin Account called “MyAdminX” with the password “!!4SJKAHGYWMd4!!” on first boot and you will be able to logon to the server using this new account.
Since we are working in IT industry & proving support to our clients, we are always dependent on various form of notification such as emails, sms, voice etc, and none of them are free, especially when the you are sending those traditional notifications across the globe. Currently almost everyone using smartphone, and mostly those are connected to the internet for 24×7, so I guess, it’s time to send those notifications smartly. Try using Telegram Bot for sending personal notification for free to any of the Smartphones.
To start with, you should create your own Bot on Telegram. You should ask the BotFather (father of all the Bots) to create a boot for you.