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

2

u/robp73uk Dec 11 '25 • This

UPDATE: I’m wrong -OutFile does seem to be allowed.