4 ms·
Some bad advice in there... Set-ExecutionPolicy Unrestricted -Force Should be: Set-ExecutionPolicy Unrestricted -Scope Process Turning off that feat
by yabones 3y ago
Some bad advice in there...
Set-ExecutionPolicy Unrestricted -Force
Should be:
Set-ExecutionPolicy Unrestricted -Scope Process
Turning off that feature permanently is a bad idea.
- housemusicfan 3y agoYou're trying to convince a bunch of people that think curl | sudo sh with random scripts off the internet is perfectly okay.
- _xivi 3y agoWhat better alternatives do you recommend?
- smt88 3y agoSigned executables
- joshuaissac 3y ago> What better alternatives do you recommend? Install packages only from the operating system's package repository or from another trusted repository. If the software installer is only available as a script, download the script manually and check its contents instead of piping it to a root shell (and maybe run it in a VM instead). That way, you can know if the code is trying to do something nefarious. Piping to Bash can also be detected server side, so a server can serve malicious code when it is piped and good code when it is not. https://news.ycombinator.com/item?id=11532599 https://news.ycombinator.com/item?id=11532599
- Gordonjcp 3y agoThis is kind of the problem with Windows-y thinking, yes. "Oh the security stuff is in the way, why does it need that, MSDOS doesn't have it, no-one needs it"
- deleted 3y ago[deleted]
- rafiere 3y ago[dead]