PowerShell
The ultimate tool for turning chaos into order. It’s like having a superpower, but with more scripts and fewer capes.
-
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.
-
Tired of manually downloading LEGO building instructions? This PowerShell function automates the process by fetching the instruction page, filtering valid PDF links, and saving them neatly into a folder per set. Whether you’re organizing your collection or just love scripting, this tool adds efficiency and fun to your LEGO hobby.
-
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.
-
PowerShell Remoting lets you run commands, gather inventory, and automate fixes across dozens—or hundreds—of systems from one console. In this guide you’ll enable remoting safely, run one‑off commands with Invoke-Command, build persistent sessions for faster workflows, push scripts, move files, and troubleshoot connectivity like a pro. If you manage Windows servers or mixed environments, mastering these patterns will cut tedious RDP hops, standardize execution, and boost reliability—while keeping security (WinRM, auth, firewall, encryption) front and…
-
One of PowerShell’s most powerful features is its pipeline system. The pipeline allows you to send output from one command directly to the input of another command, creating efficient and elegant solutions to complex problems. In this guide, we’ll explore how to master PowerShell’s pipeline to write more efficient and readable scripts. What is the […]
-
Discover how recursive functions work in PowerShell and why they’re perfect for navigating complex, nested data structures. Inspired by Boot.dev’s RPG-style learning, this post walks through a practical example using JSON and hashtables to build file paths recursively—ideal for backend developers looking to level up their scripting skills.
-
Master everyday file and directory tasks in PowerShell with a practical toolkit: navigate with Set-Location (cd/$pwd), explore with Get-ChildItem (filters, recursion, attributes), create with New-Item, and manage with Copy-Item, Move-Item, and Remove-Item. Learn safe patterns using Test-Path, -WhatIf, and Join-Path, plus real-world scripts for backups, temp cleanup, organizing files by extension, and detecting duplicates. The article also covers error handling and cross-platform path practices to keep automation reliable.
-
When splitting a list of users into batches, rounding errors can lead to unexpected results. In this post, I explore common mistakes with [math]::Round(), explain rounding strategies, and show how methods like Ceiling() and Floor() can help you get accurate batch counts in PowerShell.
-
PowerShell provides a rich set of comparison operators that are essential for decision-making in scripts. These operators allow you to compare values, filter data, and create conditional logic that makes your scripts more intelligent and responsive. In this guide, we’ll explore the most commonly used comparison operators and see them in action. What are Comparison […]
-
Error handling is a crucial aspect of writing robust PowerShell scripts. When things go wrong—and they will—proper error handling helps your scripts gracefully manage problems, provide meaningful feedback, and continue operating when possible. In this guide, we’ll explore PowerShell’s error handling mechanisms and learn how to write more resilient scripts.