ENGINEERING/SW

How to solve the error, about_Execution_Policies of PowerShell in VS Code?

Hogeony 2020. 2. 20. 11:33

* Error

이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\User\Documents\WindowsPowerShell\profile.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오.
위치 줄:1 문자:3
+ . 'C:\Users\User\Documents\WindowsPowerShell\profile.ps1'      
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      
    + CategoryInfo          : 보안 오류: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

 

* Solution

PS C:\> Set-ExecutionPolicy RemoteSigned

 

* Check

PS C:\> Get-ExecutionPolicy