Category: PowerShell
PowerShell Code Written By ChatGPT AI.
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 […]
PowerShell Configuration Storage Module
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 […]
Secure Passwords With PowerShell Module
This module will securely store passwords in PowerShell with ease. No need to manually manage passwords used in your scripts.
Powershell CSV Clarity…
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.
Name Capitalization Class in C# and PowerShell
Little class in C# and PowerShell that allows you to easily capitalize a user’s name.
PowerShell Class to Generate SQL Insert statements
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.
Remove AD Accounts and User Share
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.
Automated Dynatrace API data dumps from PowerShell
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 […]
Restful Server In PowerShell
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 […]
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 […]