PowerShell SnippetRace 22-23/2026

EntraID, Parameters, zLocation, Format-Custom

Events

  • PowerShell EU Conference June 1st, Wiesbaden Germany. Link
  • Expertslive Austria Converence June 25th Linz Austria. Link

Snippets

Manage EntraID with conditional access using the MS-Graph PowerShell Module

MS-Graph gets more powerful every day as new features are added. Still manage users and groups is a day-to-day task. Read Adam Bertrans blog with some examples.

Check parameter usage in scripts

Running a script with parameters often requires to know if a parameter has been used or not. PSBoundparameter is very commonly known, probably $isPresent is a little less known. Read Haarm Veenstras blog on both options and how to use them in your code.

ZLocation, your newest must-have tool !

Z-Location is collecting the pathes you use the most and stores them in a database. The longer you use it, the more stats it gets. After some moves on your disk, zLocation knows your favorite locations on disk and you can easily z into it. The command „z“ and a tab will make your life so much easier when navigating through directories. Read Haarm Veenstras blog on zLocation.

Format-Custom – start using it

Whenever we start exploring data in Powershell, Format-List and Format-Table are a primary choice to see properties of objects. Using Format-Custom has much more possibilities, like showing the structure of data defining depth and so forth. Read Haarm Veenstras blog on Format-Custom.

Have a good time !

R.

Foto von GeoJango Maps auf Unsplash

Leave a Reply