3 ms·
I doubt it, and part of me hopes not. This seems like a new possible vector for malware. Microsoft went to great lengths to disallow these kind of one-liners i
by captainmuon 11y ago
I doubt it, and part of me hopes not. This seems like a new possible vector for malware.
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.
OTOH, yes, being able to assume bash on a user's installation would be amazing of course...
- 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