this post was submitted on 11 Dec 2025
6 points (100.0% liked)

Powershell

1205 readers
1 users here now

PowerShell (POSH) is a a task automation command-line shell and scripting language created by Microsoft. It became part of the FOSS community in 2016 and is now available across Windows, Linux, and macOS

Resources:


Rules:

Self-promotion rules:


founded 2 years ago
MODERATORS
 

The recent breaking change to Invoke-WebRequest in Windows PowerShell 5.1 has the potential to affect a lot of automation, especially in older environments. To make it easier to assess the impact, I published a script called Search-CmdletParameterUsage.ps1.

This tool recursively scans your scripts and modules for any cmdlet + parameter usage. While I built it to identify places where Invoke-WebRequest is not using -UseBasicParsing, it works generically for any cmdlet you're concerned about.

If you maintain large codebases or inherited automation, this can save a ton of manual review.

Script: https://gist.github.com/mdowst/9d00ff37ea79dcbfb98e6de580cbedbe

KB on the breaking change: https://support.microsoft.com/en-us/topic/powershell-5-1-preventing-script-execution-from-web-content-7cb95559-655e-43fd-a8bd-ceef2406b705

Happy scripting! And good luck hunting down those IWR calls.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here