It was something I ran into this week, Format-Custom. Usually I display things in a list or table, but this is different... And very useful! In this blog post, I will show you how it works.
Category: Formatting
My PowerShell for Visual Studio Code extension settings
I use Visual Studio Code to create and edit PowerShell scripts. The PowerShell Extension from Microsoft has some excellent features that will make your scripts more readable and consistent formatting-wise. In this blog post, I will show you my configuration and the options I use.
Display Markdown files in PowerShell
Creating Markdown files is something that I do regularly, usually in Visual Studio Code or Obsidian. But when working in a Windows Terminal or a standard PowerShell prompt, it's nice to display those .md files in those, too, with all the formatting that Markdown gives you. In this blog post, I will show you how 🙂
Parameters for PowerShell Scripts and Functions
Using parameters for your Scripts and Functions is very powerful. You don't have to hardcode things in them, making running them from a command line easier. This blog post will show you the parameters I use in most of my scripts and how they work.
Use PowerShell to create report of a DTS Compliant NPS log
One of our customers had issues authenticating clients using NPS. One of the first things you do is... I read the NPS logs, and they were DTS Compliant formatted, a bit of a pain to read and search 🙁 So, I used PowerShell to create a nice log for me in either a GridView or an Excel file. In this blog post, I will show you how!
Things I use most in my PowerShell scripts
Looking back at the scripts I created the last year, certain things always come back in most of them. In this blog post, I will show you a few and explain them.
PowerShell Out-ConsoleGridView and F7History
I saw these two console tools for PowerShell in my newsfeed, and I like them. This blog post will explain what they are and how they work.
Using the #Requires statement in PowerShell
Sometimes you have scripts that require specific versions of modules, or if the script is started with Administrator privileges, you can add checks for that in the script itself or... You can use the built-in #Requires statement for that. In this blog post, I will show you how.
Visual Studio Code Snippets and PowerShell
You often repeat certain standard things when writing scripts in Visual Studio Code. Wouldn't it be nice if we could simplify that? This blog post will show you how to use VSCode Snippets to your advantage!
Server-Side-Filtering in PowerShell
Retrieving objects in your scripts is something that you do regularly. It takes a long time to download and process in larger environments, wasting CPU and time. This blog post will explain how to speed up scripts by filtering server-side before downloading all results and filtering afterward.