Classes in PowerShell

I’ve noticed that a lot of admins learning PowerShell tend to use global variables and pass things around to functions, if they use functions at all. Sometimes all you need are classes to make things cleaner and easier to manage. Classes can be intimidating to newer developers or folks who only write occasionally for admin […]

Simple PowerShell module to store passwords.

If you have PowerShell scripts with passwords hard-coded you don’t want to risk someone accidentally exposing the script with passwords available. I wrote a simple password vault module to keep passwords outside the scripts. It stores them as files so you will need a secure share or folder to store them. I have a Python […]

Coin flip in PowerShell, GUI version.

Need to make a decision, like to bet, maybe you just like silly apps? Whatever the reason you’re reading this I hope it helps someone to learn some simple GUI tricks in PowerShell. I didn’t spend a lot of time on this. I already wrote one in C# years ago and had some downtime so […]

Get moon phase in Vala and PowerShell.

I’m working on a project in Vala that requires the moon phase. I’ve done this before in Python myself but wanted to look around for better. I found a nice Python script that just works so I decided to use it in Vala. Again, I’m learning PowerShell so why not convert to that as well? […]

Video Poker in PowerShell

In between real work I am practicing PowerShell since I don’t use it often. I created a video poker game for something to create. It’s rough and I don’t have time to make it pretty or add a GUI, but maybe it will inspire someone else? I also know very little about poker… I took […]