What is the potential threat if I "Unrestricted' the Execution Policy for Local Machine?

Viewed 211

I installed oh-my-posh but the profile script for PowerShell was not working correctly. I found out PowerShell execution policy is restricted by default. I have changed the setting following Microsoft's About Execution Policy page.

What is the security threat of unrestricted execution?

1 Answers

The default is remotesigned now anyway. But anyone can override it by running "powershell -executionpolicy bypass". The purpose is to stop unknowingly running a PowerShell script, say from an email attachment, like the good old days of getting vbscripts in email.

Related