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

24

u/atheos42 6d ago

Irm is invoke-restmethod, please stop trying to run that script, until you know what the script does. Irm is a common command, and super common for malicious scripts. Please post the script so someone here can help you evaluate it.

1

u/Some-Pen3203 2d ago

I found it here (used to be a different name and was moved the day I was trying to run it): github.com/iFryno/RemoveWindowsAI

13

u/Th3Sh4d0wKn0ws 6d ago

this smells like a "clickfix" attack. Were you on a website that asked you to paste into powershell? Or hit Win+R and then Ctrl+V?

1

u/Some-Pen3203 2d ago

no, I actively searched for a script that would get rid of AI components that windows installed on my pc without my consent (I'm just a guy who is strongly anti-AI, but not really into IT, I just use pcs for work, games and youtube), it's in github.com/iFryno/RemoveWindowsAI. I explained the details in other replies.

8

u/CitySeekerTron 6d 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.

1

u/Some-Pen3203 2d ago

thanks for the help! I explained in detail in other replies, I think it's all good.

8

u/BlackV 6d ago edited 6d 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

  1. You are running invoke-webrequest/irm (or invoke-restmethod/irm), this downloads something (a script in this case probably)

  2. Given your level it is very likely malware

  3. Is there an invoke-experession/iex involved , it is likely malware

Take 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

1

u/Some-Pen3203 2d ago

Sorry for not replying sooner! After so many "your post has been automatically deleted by reddit autofilters", I was under the impression that nothing had been posted an I just rage-quit on reddit.

the script is in github.com/iFryno/RemoveWindowsAI, it used to be a different name than iFryno, which was taken down exactly the day I found it and eventually moved (just my timing!). I already ran it... I may have never ran a script before and I may know nothing of... this stuff in general, but I did at least make sure that multiple people recommended it (got mentioned in a couple youtube videos and praised in comments, which is not conclusive proof it's safe, but the best I could do) and it wasn't some obscure link... It deleted everything I wanted deleted and my pc still works... I hope it's fine, right?

2

u/BlackV 2d ago edited 2d ago

No problem

it used to be a different name than iFryno, which was taken down exactly the day I found it and eventually moved

that seems suspicious by its self

its deffo using irm also suspicious

Warning

Some third party anti-viruses will falsely detect the script as malicious, obviously this is a false positive and the anti-virus will need to be temporarily disabled or set the script as an exclusion.

Due to the nature of making advanced changes to the system many de bloat tools/scripts will be falsely detected as malware... if you are unsure about the script I always recommend testing any software in a virtual machine first

Suspicious

  • Its first step disables antivirus (or asks you to), suspicious

  • kills trusted installer, suspicious

  • encoded its commands as base64, suspicious

  • Changes the command line of trusted installer suspicious

there are a bunch more, but I stopped at 600 lines or so, before its starts changing copilot and AI keys, edge keys , etc

I already ran it...

if you ran it already, and just got the 404 then its made no changes, if you ran it after it moved and walked through the changes, then its too late, did it work ?

maybe its a legitimate script, maybe not, but without understanding it, id be reluctant to run it

If really want a OS without ai/spyware windows probably shouldn't be your choice, linux should, but that'd also a learning curve

2

u/Some-Pen3203 1d ago

Yeah... not the first time Linux is mentioned, but it has 2 issues. First is my pc is windows 11, so I don't know/think it can be changed, second and lesser issue is that Linux, from what I've heard, doesn't support everything that windows can. Learning curve or not, I'd change it in a heartbeat if I could, the less I use from that company, the better. I didn't run through the changes after it was moved, but as it was running, it showed a couple errors on powershell where it was failing to run a couple things (which showed that it was taking from the old name (zoic or zoicware) instead of iFryno), the rest worked, so I think it was a rushed copy-paste? Either way, if it's too late, it's too late. I did have the awareness to change my credit card info before running any script though.

Either way, thanks a lot! I will be careful and make sure to inform myself better next time!

1

u/BlackV 1d ago

Good luck

As an fyi,mifmyour system runs windows 11 I should run Linux perfectly.

The catch could be not all games will run, a good 90 something percent do. But it's still not perfect from that's side

There are a quite few windows specific apps (think image processing or CAD or a few others) that's don't have Linux versions

If it's work related stuff then windows is probably still the best

5

u/Icolan 6d 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.

1

u/Some-Pen3203 2d ago

the url had been taken down the same day I triedto run it. it's since been moved in github.com/iFryno/RemoveWindowsAI by the guy who made it. Sorry for late reply, and thanks for the help!

1

u/Icolan 2d 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 1d 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 1d 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.

2

u/da_chicken 6d ago

A 404 Not Found error is the same kind of not found you get with a broken link. It means the site exists, but the URL is wrong.

2

u/g3n3 6d ago

If you are in this realm, you may have been attacked. Consider changing passwords and reimaging your machine.

1

u/thomasmitschke 6d ago

This link is invalid.