Posts

Showing posts with the label Powershell

AWS Systems Manager. No more bastion hosts, nor credentials to run scripts or commands against multiple servers at once ?

Image
Hey guys !!! Hope you are doing pretty good? Today's post is supposed to be a quick one. I am going to start with a real case scenario. I was working for an Enterprise Managed Services provider and because EMS supports multiple customers, you end up with a bunch of environments, credentials, diagrams that make your life a lot harder whenever you need to jump on a server to troubleshoot something. This tough task though, can be easier if you have the ability to leverage AWS Systems Manager in your environment. What systems manager allows you to do is , basically, access a shell of a machine without having to rdp or ssh to it, have an inventory of your fleet, and , one of the coolest features, running commands/scripts against multiple servers at once, again, without even knowing an username or password. My assignment was to identify which servers were still configured to use a DNS server that we were going to decommission. The challenge was, not all servers were part of a...

Build your AWS VPC, from scratch, in only 2 minutes

Image
Hi there !! I hope you guys are doing good. It's been a long time since my last post and so much went on that I could spend hours here. I ain't gonna do that, I will just go straight to the point which is: The cloud ! Yeah folks ! All I can tell you is that, if you have not gotten started yet, you should ! before you realize it's too late. There is no way back, you gotta know cloud. Being AWS, Azure and GCP the big players at the moment, today we will talk about the one that leads the race: AWS. I have a background in computer networking and windows server. I am not a dev guy but things started to change and now, I think you should learn some programming as this can make you a more valuable professional. Automation is incredibly desired nowadays and you should know both, infra and dev, in order to really be successful in the cloud. When we decide to learn something new we generally start to get our hands dirty by setting up a lab. AWS gives you a chance to build...

What if I'm asked to provide a list with users from active directory that have not logged on for "X" days, for cleaning purposes ?

Image
Hey guys !! How are you doing today ? Today we are going to talk about one very common situation that most of us get quite frequently. How to come up with a list of users that have not logged on for "X" days. From time to time, we should clean stuff up and many times, it is hard to keep AD database clean due to a number of facts that is out of control of the IT department. People leave company, get fired and not all times, IT department get notified in the way it should. You may end up with a bunch of disabled accounts but maybe, not all of them get moved to a disabled OU, or even get deleted when time comes, if company policy allows for account deletion. Powershell can help us to get a comprehensive list of users that have not logged on for whatever number of days make sense in your environment. There are tons of powershell scripts out there that can do this for you but one thing that is very important to understand is that, there are two attributes that can c...

My first post...

Image
Hello everyone !! This is my first post and since I'm a newbie here, please be patient ! :) I am a passionate IT professional who has been in the field for over 15 years. I am one of the few IT guys I know that is passionate about technology and who is not a fan of Star Wars, nor coffee. Yeah , I know, I may have frustrated you but it's is true. Although I have to admit, I am becoming addicted to French Vanilla coffee. Anyways, I want to leverage this space to, hopefully, provide useful content for you hoping this can help you solving issues that you may have and also, leverage this platform to learn from you guys as well. As I am originally from Brazil, although I've been living in Canada since 2012, I will also provide a Portuguese version of my posts so people who are not so comfortable with English, can benefit from this as well. But, guys, if you do not speak English yet, please, make an effort to learn it because it will take your career to the next lev...