PowerShell Archives

Why your PowerShell script suddenly “cannot be loaded” in VS Code (when it ran fine 30 minutes ago)

A PowerShell script that ran fine 30 minutes ago suddenly “cannot be loaded because running scripts is disabled”? You probably didn’t change anything — you changed terminals. VS Code has two nearly identical PowerShell consoles, and only one of them obeys the execution policy.