r/PowerShell • • 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

19 comments sorted by

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.

1

u/Some-Pen3203 13d ago

trust me, I spent almost an hour trying to find a download button before finding out that you supposedly have to use powershell. (please don't tell me I missed an obvious button)

1

u/Icolan 13d ago

You don't need to use a download button. Powershell is text. You just copy the raw text into a file on your system and name it with a .ps1 extension and you have a powershell script.

There is also a download button that will let you download a zip of an entire GitHub project.