r/PowerShell • • Feb 27 '25

irm "https://christitus.com/win" | iex is it safe ?

irm "https://christitus.com/win" | iex

I want to run this command to optimise my PC, and I am confused about whether is it safe

6 Upvotes

62 comments sorted by

View all comments

Show parent comment

1

u/Pimzino Feb 27 '25

iex is invoke expression.

No such thing as invoke executable.

You’re downloading a powershell script and executing all the code in one go as if you were writing it manually in the terminal.

This just bypasses powershells powershell script execution policies.

3

u/chsbrgr Feb 27 '25

Thanks for catching that. I was replying on mobile and didn't realize that. fixed the comment.