r/PowerShell • u/Some-Pen3203 • 21d 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
5
u/Icolan 20d ago
Is this code you wrote? If not, where did it come from? The error is because the site is saying the URL does not exist. If this is something that popped up on your PC you should NOT run it, it is likely a scam.