This is simply for my personal reference since I keep searching for this. I usually use to check from AWS Systems Manager Session Manager. The answer is to run the command query user /server:$SERVER. The answer is from this StackOverflow question.
This is simply for my personal reference since I spent a lot of time figuring out how to do this simple thing I have some RHEL 8.3 servers which I need to have security patches, but it should not upgrade to 8.4. This runs on AWS EC2 instances, and it does not have a subscription […]
This is simply for my personal reference as I am always confused on finding it as part of my projects, and I always forget what to search. So the answer is just a copy from Server Fault Type dsquery /? in a command prompt.
By default cloudwatch log groups will have a retention period of “Never expire” set when created. If you have a lot of cloudwatch log groups and want to set retention period for all of them at one shot, use the following powershell code snippet. The script requires you to have the AWS CLI profile configured […]
SSM Session Manager Port Forwarding is great tool that can be used get rid of your bastion hosts or VPN servers to manage your private instances. However, when you have to manage many instances that are spread over multiple AWS accounts, it will become a difficult task to remember their instance ids, and creating sessions […]
If you need to rename your EC2 instances based on the tags set, you can use the below code snippets. This can be particularly useful if you use a hardened AMI with a name already set in. To apply them, you can just use a cron job or a Task Scheduler job, or even cloudwatch […]
In case if you configured a new WSUS server, but your Windows Server 2016 servers without internet access are throwing errors like “We couldn’t connect to the update service. We’ll try again later, or you can check now. If it still doesn’t work, make sure you’re connected to the Internet.“, you can fix it by […]
AWS SSM is a great tool, with a lot of cool features, but I always felt that the documentation is not very good, or the console is very intuitive. Recently I wanted to configure a maintenance window with an SSM Automation task, but the task did not take any instances as the inputs. The task […]
So if you setup a VPN between an AWS account and an on premise network with a Sophos firewall as the customer end device, it should work perfectly if you only have one route to the on premise network. But, when you start adding more routes to the VPN, you will start seeing connection dropping […]
So if your employer migrated from Skype for Business to teams, it is going to be an annoying change because by default you will not be able to send IMs to Teams from outlook unlike Skype used to be. But with a small change in Teams it is possible. – Open Teams – Click on […]