![Blog Post illustration](https://cdn.devdojo.com/posts/images/January2024/simplifying-powershell-object-validation-transforming-a-json-schema-refactoring-journey.jpg)
In a recent scripting endeavor, I developed a PowerShell script with an ArgumentTransformationAttribute. The script's purpose was to convert PSCustomObjects or Hashtables into a JSON format tailored for seamless integration with a BatchRequest destin...
![hcritter avatar](https://cdn.devdojo.com/users/March2023/hchristianritter.jpg)
HCRitter
![Blog Post illustration](https://cdn.devdojo.com/posts/images/December2023/powershell-technique-powershell-getting-all-string-occurrence-indices.jpg)
Recently, I participated in AdventOfCode 2023 and encountered challenges that required finding the precise location of a character in a string, along with all its occurrences. Take, for instance, the string 'Hello, world!'. I needed to identify all p...
![hcritter avatar](https://cdn.devdojo.com/users/March2023/hchristianritter.jpg)
HCRitter
![Blog Post illustration](https://cdn.devdojo.com/posts/images/November2023/powershell-securing-app-registration-with-application-access-policy.jpg)
In the rapidly evolving landscape of Entra ID, the use of App-Registrations has become increasingly prevalent, empowering users to seamlessly leverage PowerShell and the Microsoft Graph API for fundamental tasks in Exchange-Online, Entra ID, Intune, ...
![hcritter avatar](https://cdn.devdojo.com/users/March2023/hchristianritter.jpg)
HCRitter
![Blog Post illustration](https://cdn.devdojo.com/posts/images/November2023/powershell-perfomance-test-get-the-maximum.jpg)
Introduction: Efficiency is key when working with PowerShell, and maximizing performance is a common goal for script developers. In this post, we'll explore various techniques for retrieving the maximum number from arrays of different sizes, comparin...
![hcritter avatar](https://cdn.devdojo.com/users/March2023/hchristianritter.jpg)
HCRitter
![Blog Post illustration](https://cdn.devdojo.com/posts/images/November2023/powershell-retreive-the-update-build-release-ubr.jpg)
In the realm of PowerShell, determining the version of the operating system is a common task for sysadmins. However, when it comes to reporting, extracting additional details, such as the Update Build Release (UBR), becomes crucial. While the Winver ...
![hcritter avatar](https://cdn.devdojo.com/users/March2023/hchristianritter.jpg)
HCRitter
![Blog Post illustration](https://cdn.devdojo.com/posts/images/October2023/powershell-add-getvalueordefault-method-to-a-hashtable.jpg)
Enhancing PowerShell with GetValueOrDefault: A Neat Solution for Streamlined Hashtables Have you ever wondered why the Hashtable in .NET lacks a GetValueOrDefault method, a feature readily available in basic Dictionaries? In my quest to streamline my...
![hcritter avatar](https://cdn.devdojo.com/users/March2023/hchristianritter.jpg)
HCRitter
![Blog Post illustration](https://cdn.devdojo.com/posts/images/September2023/powershell-technique-smart-aliases.jpg)
PowerShell-Technique: Smart Aliases
PublishedPowerShell-Technique: Smart Aliases Utilizing Non-existent Functions in PowerShell Introduction In a recent project of mine, PSMermaid, I had the privilege of exploring a fascinating technique called 'Smart Aliases,' which was introduced to me by the...
![hcritter avatar](https://cdn.devdojo.com/users/March2023/hchristianritter.jpg)
HCRitter
![Blog Post illustration](https://cdn.devdojo.com/posts/images/August2023/powershell-creating-an-empty-pscustomobject.jpg)
Simplifying Creation of Empty PowerShell PSCustomObjects using Custom Functions Creating an empty PSCustomObject in PowerShell is a common task, but the traditional approach can be verbose and repetitive. In this blog post, I'll walk you through a mo...
![hcritter avatar](https://cdn.devdojo.com/users/March2023/hchristianritter.jpg)
HCRitter
![Blog Post illustration](https://cdn.devdojo.com/posts/images/May2023/powershell-performance-test-like-and-equals-string-comparison-methods.jpg)
When using PowerShell, many users often rely on the like comparison in a where statement for querying data. However, there is an alternative method that can be faster, especially when searching for strings that start with specific letters. This metho...
![hcritter avatar](https://cdn.devdojo.com/users/March2023/hchristianritter.jpg)
HCRitter
![Blog Post illustration](https://cdn.devdojo.com/posts/images/May2023/powershell-script-showcase-get-wifipassword.jpg)
PowerShell is a powerful scripting language that can be used to automate a variety of tasks. In this blog post, we will explore my Get-WifiPassword script that retrieves stored Wifi passwords on Windows machines. The script overcomes the issue of loc...
![hcritter avatar](https://cdn.devdojo.com/users/March2023/hchristianritter.jpg)