r/PowerShell • u/Some-Pen3203 • 19d 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/CitySeekerTron 18d ago
Can you post the full script/command, even if censored?
The 404 indicates that the target is wrong. For example, a graphic that has been deleted from the server. But if you're trying to follow instructions provided by a webside ("Paste this to confirm your ID"), it could be a scam that pulls a script that has since been deleted by the person operating the server.