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
Show parent comment
1
u/Icolan 14d ago
You can simply download that PS1 file after you have reviewed it, you don't need to run it from Github.
In general, running scripts directly from the internet is a bad idea and you should not run anything unless you actually understand what it is going to do and are sure it is coming from a trusted source.