3 ms·
I wonder why Raymond Chen suggest a WSH solution. Isn't PowerShell the official scripting language for Windows nowadays?
by dolmen 3y ago
I wonder why Raymond Chen suggest a WSH solution. Isn't PowerShell the official scripting language for Windows nowadays?
- mike_hearn 3y agoPowerShell 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`