Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> & ([scriptblock]::Create((irm "https://raw.githubusercontent.com/zoicware/RemoveWindowsAI/m...")))

Finally, we can do 'curl https://host.com/script.sh | bash -' in Windows!



Yes, that's called

  irm script.ps1 | iex
Famously used in the Windows Activation Scripts.


im not exactly sure why they have chosen to execute as scriptblock, but normally, you can just do ``` irm <url> | iex ```

which essentially sends a request (curl) and runs everything (iex)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: