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

8

u/BlackV 25d ago edited 25d 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 21d 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 21d ago edited 21d 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 20d 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 20d 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