3 ms·
> Microsoft went to great lengths to disallow these kind of one-liners in PowerShell (you need to explicitly add -executionpolicy bypass to even run a script),
by rat87 11y ago
> Microsoft went to great lengths to disallow these kind of one-liners in PowerShell (you need to explicitly add -executionpolicy bypass to even run a script), so apparently they are concerned about users executing random scripts off the net.
Yes and I fucking hate it, way to cut of useful functionality at the knees.
- carey 11y agoA lot of my PowerShell scripts are accompanied by shortcuts or batch files that do: powershell.exe -ExecutionPolicy RemoteSigned -File whatever.ps1