3 ms·
PowerShell has weird restrictions where it'll refuse to run scripts unless they're signed and stuff.
by mike_hearn 3y ago
PowerShell has weird restrictions where it'll refuse to run scripts unless they're signed and stuff.
- rk06 3y agoIf the sysadmin chooses to, otherwise PowerShell can be run arbitrarily
- pie_flavor 3y agoThe key is that unsigned scripts are opt-in, not opt-out. Chen is not going to suggest a solution that requires all users of the software to configure their computer to be less secure.
- ChrisSD 3y agoIt's not really a security measure in that sense. It's a "safety feature" that prevents accidentally running such a script. Anything can trivially disable the protection using a bat script (or anything else) to bootstrap. E.g. `powershell.exe -ExecutionPolicy Unrestricted`