8/24/2017

[POWERSHELL] 이 시스템에서 스크립트를 실행할 수 없으므로 파일을 로드할 수 없습니다(execution of scripts is disabled on this system.) 에러 해결 방법

메모차 간단하게 작성합니다.

Powershell script 를 작성 / 사용하다보면 아래와 같은 에러가 반겨주는 경우가 있습니다.

한글

"이 시스템에서 스크립트를 실행할 수 없으므로 파일을 로드할 수 없습니다"


영문

"execution of scripts is disabled on this system."


이런 에러는Windows에서 정책적으로 Powershell 실행에 제한이 있어서 불가능합니다. 관리자 권한이 있는 powershell로 ExecutionPolicy를 RemoteSigned로 변경해주는 것으로 해결이 가능합니다.

PS C:\> Set-ExecutionPolicy RemoteSigned

잘 바뀌었네요. 바뀐 권한을 보면 RemoteSigned로 변경되어있습니다.

PS C:\> Get-ExecutionPolicy
RemoteSigned


HAHWUL

Security engineer, Gopher and H4cker!

Share: | Coffee Me:

6 comments:

  1. 좋은 정보 감사합니다~

    ReplyDelete
  2. 모두 예를 눌럿더니 엑세스가 거부되었다고 합니다ㅠㅠ

    ReplyDelete
  3. Set-ExecutionPolicy -Scope CurrentUser RemoteSigned 이렇게 하니까 됩니다

    ReplyDelete