r/PowerShell • u/Some-Pen3203 • 26d ago
Question scripts don't work
I get this error when running a script. I'm not tech savvy at all, and I couldn't find an answer anywhere. Please help. The error:
irm : 404: Not Found
At line:1 char:2
+ irm (imagine a link here, can't type it for reddit auto-filters) ...
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
0
Upvotes
View all comments
8
u/BlackV 25d ago edited 25d ago
If you are typing something like this and you are not tech savvy
DONT DO IT, IT IS 100% UNSAFE FOR YOU
let's start with
invoke-webrequest/irm(orinvoke-restmethod/irm), this downloads something (a script in this case probably)invoke-experession/iexinvolved , it is likely malwareTake a step back tell us what you are actually trying trying to do
You can type urls.without http just find
Show us the code as well as the error
404 is standard HTML code for file/page not found