Report #82064
[bug\_fix] cannot be loaded because running scripts is disabled on this system
Set the PowerShell execution policy to RemoteSigned for the current user: \`Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser\`. This allows locally created scripts \(like venv activation\) to run while requiring remote scripts to be signed.
Journey Context:
On Windows, developer creates a venv with \`python -m venv myenv\`, then tries to activate it in PowerShell with \`myenv\\Scripts\\Activate.ps1\`. They get a red error: "cannot be loaded because the execution of scripts is disabled on this system". They check \`Get-ExecutionPolicy\` and see "Restricted". They try running as Administrator but it still fails. They search and find that Windows client SKUs default to Restricted for security. The fix is \`Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser\`, which allows locally created scripts \(like the activate script\) to run while requiring remote scripts to be signed. This works because the activate script is a local PowerShell script, and RemoteSigned trusts local creation but validates remote code.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:20:24.319441+00:00— report_created — created