Troubleshooting
Because nobody is perfect, but we can fix that!
-
PowerShell 7.4 introduces a subtle but impactful change: the default encoding for HTTP requests is now UTF-8 instead of ASCII. This shift can cause unexpected issues when working with the Microsoft Graph API, particularly during .intunewin file commits in Intune. In this post, I explain the root cause, share workarounds, and offer practical solutions to keep your automation workflows running smoothly.
-
Measure-Command is a simple yet powerful tool to gain insight into the performance of your PowerShell code. Whether you’re optimizing scripts or just curious — to measure is to know.
-
Strict mode is a concept found in various programming languages, designed to enforce stricter coding rules and catch common bugs early. While PowerShell doesn’t have a strict mode like JavaScript or TypeScript, it does offer a feature called Set-StrictMode that serves a similar purpose.
-
Checking for null and empty values is crucial for robust PowerShell scripting. This blog explores effective methods to handle these checks, ensuring your scripts run smoothly and error-free. Learn the best practices for comparing values. Enhance your code readability and reliability with these essential techniques.
-
The tale of the missing property and Register-PSRepository.
-
Ever had a script which contains an array and a foreach loop? And then you want to test the content of the foreach, but only with one entry for troubleshooting purposes for example.