Powershell · 
Sorted in alphabetical order.
In C and C++ there exists the concept of include guards (header guards)
to prevent that a header file (or rather the content of such file) is included more than once,
because that could cause errors and strange behavior due to redeclarations or name collisions1.
Well, looks like I somehow caught a severe case of “summer blues” last year, that’s why I didn’t code much in
my spare time in the last couple of months. But now I’m slowly getting back in the saddle.
The second half of 2020 was regrettably pretty unproductive for me in terms of (C++) code – that
wasn’t really planned, but life is strange sometimes (… he says, sitting at home, during the COVID-19 lockdown).
How to add custom commands to the Run menu.
A collection of code snippets, small pearls of wisdom and bits of knowledge that may come handy at times.
Some notes on the items listed in the title 😉
A brief reminder for the topic of Console Colors and Powershell.
This is an extension to my notes on parameters for scripts or (advanced) functions in Powershell:
Dynamic (or conditional) parameters are an interesting and cool feature, but also a bit tricky and cumbersome to set up.
Dynamic (or conditional) parameters are an interesting and cool feature, but also a bit tricky and cumbersome to set up.
This is not a tutorial article, just links to other scripts of mine that show (by example)
how to make use of GUI widgets with Powershell.
A short description on how to make a Powershell function that can accept and process input data
that it gets from the pipeline.
Some notes on where and how to get help-information for Powershell commands.
For my day job, I wanted know the name of the ‘Citrix’ desktop on which I was currently logged in,
because some features are only available on certain desktops in our environment.
Some notes on parameters for scripts or (advanced) functions in Powershell.
A Powershell profile is a script file that is run each time a new Powershell is opened.
You can define session-specific items in it (variables, aliases, functions, etc.) or
call other scripts and commands at the start of a new Powershell session.
Powershell’s PSCustomObject type has been a great tool, but since I don’t use it every day, I jotted
down some sample code and links for my future self (or any other interested reader 😄
), as a reminder.
Notes on using a remote session with Powershell
The need to prompt a user for a choice in a text menu (i.e. in the console), and a slight dissatisfaction
with the commonly recommended $Host.ui.PromptForChoice() after experimenting a bit with it,
triggered me to ultimately write my own function.
Some notes on the method of “splatting” in Powershell code.
Powershell scripts can be very practical tools, but they lack an easy Just Do It mode:
Even as a developer/administrator/power-user, one has to remove several obstacles before you can use it; and if you plan to deploy a script to (normal) users, you should take care of some issues before.
Even as a developer/administrator/power-user, one has to remove several obstacles before you can use it; and if you plan to deploy a script to (normal) users, you should take care of some issues before.
A transcript logs all action of a Powershell session to a text file; good for documenting and archiving.
This is not a introduction or tutorial on what Regular Expressions (RegEx) are or can do,
but on how to use them with Powershell!
This started out as a short entry for my Powershell Snippets page,
but it quickly turned out that this cmdlet needs a longer text for explaining proper handling…
A few tips and tricks for handling JSON data with Powershell.
Here are some tips and trick on how to work on the Windows Registry with Powershell.
A few tips and tricks for handling XML data with Powershell.
The first version of my new little helper script QuickADUserInfo has been released.