Example PowerShell code to generate paydays and holidays with or without full calendar. The Holiday function could be shorter and more elegant, but it works for my needs.
I wrote a bash script for my son to convert his HEIC images to PNG so I decided to ask ChatGPT AI to do it in PowerShell for the hell of it. Well… I asked ChatGPT this question: “write a powershell script that will convert heic image files to png” Looks like it’s time to […]
This PowerShell configuration module will let you easily create, store, and retrieve configuration data in simple XML files. Of course there are a few ways to store config data for use in PowerShell scripts. One way is to save data structures and variable in a psd1 file and load direct, which is what I typical […]
This module will securely store passwords in PowerShell with ease. No need to manually manage passwords used in your scripts.
If you are having trouble working with CSV files in Powershell, all you need to know is that it’s just an array full of objects. This is the most straight forward and least confusing way to work with them.
Little class in C# and PowerShell that allows you to easily capitalize a user’s name.
There are better ways to do SQL inserts but sometimes you just want to generate SQL. Maybe? Either way, it shows the use of classes in PowerShell.
A quick and dirty PowerShell Active Directory ‘AD’ account cleanup script that can be ran as a task in any domain. This program will remove AD accounts older than 90 days that are sitting in a disabled state. Hope it’s useful to someone looking for an example.
There are many ways to do this. I wrote this in Python and now PowerShell. The original was a bat file. PowerShell is easier to work with than bat/cmd f since they can be touchy with quoted strings and html encoding. This PowerShell gets the job done for both v1 and v2 and has a […]
I know I have been focused on PowerShell but I have down time and wanted to play since our shop seems to love it so much. I think I am going to do some other posts, maybe Node or something, because PowerShell is boring. I am building a dashboard so I was playing with PowerShell […]