Colors! Magical colors!

PowerShell with colors! <3

When you don’t need to pass the stuff around and down the pipeline, Write-Host is an awesome command. It has all the shiny colors! ^_^

The question I was asked yesterday was: How do I see all PowerShell color combinations?

As it turns out, it’s very simple 🙂

Continue Reading

How to get my EC2 instance password?

I have issues with default EC2 passwords for Windows Server 2016.

Don’t get me wrong, I like that they are 32-character ones. But they are not my 32-character ones. These are really random which makes it pointless to try and type.

Now, if you were like me and actually care about security, your passwords are also long but they make sense. Like “IreallyREALLYlikeUNICORNS!BUTonlyPINKones#”.

Awesome password, am I right? *high five*

So we need a nice way to grab the default admin password. And yet again, let’s keep away from the AWS console. I did say “a nice way”, after all.

How to get my EC2 instance password?

Continue Reading

Get OS of the instance. Or, Gods forbid, SQL version…

I’ve thought about this long and hard. More ‘longer’ than ‘harder’, but still 🙂

The conclusion was that the blog won’t have much sense if I keep updating it once every few months. So I’ll minimize, or completely drop, the teaching tone from my posts.

Time taken to dissect every line of code isn’t worth it, really. If you’d like to go deeper into something that interests you, drop me a line and we can have a chat about it. Much better use of time than laying it all out initially… for nobody to read 🙂

So there you have it. This is about to become a soulless code dump place… But at least I’ve created a GitHub account! Yay! 🙂

First thing on the menu is my today’s puzzle. “How to find out which of my instances are running Windows and which run Linux?”

Continue Reading