by voltagex_ · 13y ago · 0 comments
>Note: if you get an error you might need to change the execution policy (i.e. enable Powershell) with set-executionpolicy unrestricted -s cu
The Windows equivalent of curl | sudo bash...
Please don't do this. Sign your Powershell scripts.
Note you don't need to run as admin to install scoop--it's all about installing stuff for your user account without requiring elevation.
You are right though that you probably shouldn't just run scripts like this if you don't trust them. I do it all the time because it's convenient and I'm not running elevated. You can always check the source if you're not sure.
The iex [remote-script] probably will run in that case actually, just not the 'scoop' command. Which shows what a farce the PS execution policy is.
I presume you haven't been in an organisation where all the hot new things come in and screw things up with this kind of thinking?
In general you just get that lot trained when the next wave are incoming...
I assume no one is old enough or so far away from reality that they don't remember the hell that was VBA and macros in the late 90's and early 00's?
They're very sensible organisations IMHO.
Theyre not oppressive and to be shunned. They just take data protection seriously.