r/PowerShell • • Dec 10 '25

Invoke-WebRequest powershell.exe changes

Am I understanding correctly that windows powershell 5.1.x will soon see a mandatory change to provide user confirmation for any script using iwr without -usebasicparsing?

https://www.bleepingcomputer.com/news/security/microsoft-windows-powershell-now-warns-when-running-invoke-webrequest-scripts/

55 Upvotes

29 comments sorted by

View all comments

Show parent comment

1

u/Slorface Dec 10 '25

I think you're right. Especially because Microsoft aliases curl to this cmdlet automatically. So people who use curl commands for API testing or automation without actually calling the real curl.exe might be halted by this.