Blogging about Cloud, PowerShell, and Life

So over the years I've worked with a few variables I took for granted, and I figured it was time to learn more about them! As always, I share that knowledge with you, my dear reader (now get me a muffin!).

So if there is one thing that just annoys me, it's when I have to handle credentials in PowerShell. Mind you, not the simple "call, use, discard" type of handling... Oh No... That's easy! It's when there's a need to save credentials that things get tricky!

Although more commonly associated with "waste management", this can also be applied to your PowerShell code! In the end, you don't want to continuously write the same code. You want to create functions and optimize the code in those functions to be adaptable...

When it comes to variables and parameters, I've seen some strange, horrible things. there is only one thing more annoying than someone cycling through the alphabet for variables, and that's reusing the same variable in the entire script. Even with proper error handling that's just a recipe for disaster!

It once was said to avoid using write-host in any script, since every time you use it, a puppy dies. In this article we explore the limitations of write-host, and a better way to put text on the console...