- ENABLE a machine deliberately with unsafe_code plus an explicit true. - DISABLE it deliberately with -Disable; an explicit false always wins. install.ps1 never touches. Enable it once and re-running ...
結論:Scope=Process を使えば一時的に .ps1 実行が可能です! PowerShellで `.ps1`(Activate.ps1) を実行できない場合でも、 「Scope=Process」指定で一時的に実行を許可 すれば、仮想環境を有効化できます。 ※ このセッション内だけ有効で、PC全体の設定は変わりません ...