PoshBytes: Formatting Strings with -f Like a Pro
PoshBytes: Formatting Strings with -f Like a Pro Learn how to use the PowerShell format operator -f to dynamically replace placeholders like {0} in strings. This quick demo shows how to build clean, reusable output without messy concatenation. This post is a companion for the video embedded below. Scroll down to see the code from the video. Welcome to PoshBytes, where...
PowerShell Vulnerability Update (CVE-2026-26143): What You Need to Know
CVE-2026-26143 was published, on April 14, 2026, impacting modern (Core-based) versions of PowerShell—specifically versions 7.4 and 7.5 prior to recent patches. Before diving into the details, it’s important to understand that this vulnerability is not something that can be exploited under normal, secure usage. This issue specifically requires the use of the -SkipLimitCheck parameter on the Import-PowerShellDataFile cmdlet. That parameter...
PoshBytes: When PowerShell Cares About Case
PoshBytes: When PowerShell Cares About Case PowerShell usually ignores case, but its operators can tell a very different story. Learn when and how to use case-sensitive operators like -ceq and -cmatch. This post is a companion for the video embedded below. Scroll down to see the code from the video. The default behavior Case-insensitive comparison "hello" -eq "HELLO" When you actually...
PoshBytes: What The Blank!
PoshBytes: What The Blank! In PowerShell, a value that *looks* blank might still contain spaces or tabs. In this PoshBytes short, we explore the difference between IsNullOrEmpty() and IsNullOrWhiteSpace() so your scripts can detect truly blank values. This post is a companion for the video embedded below. Scroll down to see the code from the video. Checking if a string is...
PoshBytes: Is That Really False?
PoshBytes: Is That Really False? A quick look at why if($value) is not always the same as checking for true or false in PowerShell. Learn how PowerShell treats strings, numbers, and nulls in Boolean checks so your logic does not wander off and join the circus. This post is a companion for the video embedded below. Scroll down to see the...
PoshBytes: Fixing Word Formatting with PowerShell
PoshBytes: Fixing Word Formatting with PowerShell Three blank pages at the end of a Word document that refuse to disappear. Instead of fighting Word’s formatting ghosts, we use PowerShell to surgically fix everything. This post is a companion for the video embedded below. Scroll down to see the code from the video. Example of something Open Word and the document $Word...
PoshBytes: What the Method
PoshBytes: What the Method What is a method in PowerShell and why should you care. In this episode of PoshBytes, we break down what methods are, how to call them, and how to discover them using real examples. This post is a companion for the video embedded below. Scroll down to see the code from the video. Example of something Create...
PoshBytes: Why Is My Sort Order So Weird?
PoshBytes: Why Is My Sort Order So Weird? Sorting in PowerShell does not always behave the way you expect when numbers are stored as strings. This episode shows how to fix numeric sorting and how to sort by expressions without changing your original data. This post is a companion for the video embedded below. Scroll down to see the code from...
PoshBytes: Is it Contained or In an Array?
PoshBytes: Is it Contained or In an Array? Should you use -contains or -in in your PowerShell comparison? This PoshBytes solves the common membership test confusion by showing when something is contained versus in. This post is a companion for the video embedded below. Scroll down to see the code from the video. The Setup $awesome = 'IT','DevOps','SecOps' $awesome -contains 'IT'...
PoshBytes: How Big Is My File, Really?
PoshBytes: How Big Is My File, Really? This episode of PoshBytes explains binary sizing in PowerShell and how numeric multipliers like MB and GB make everything clearer. This post is a companion for the video embedded below. Scroll down to see the code from the video. Intro Get the file and inspect its raw size in bytes $file = Get-Item .\bigfile.iso...
