OS
[Windows10] wsl 포트포워딩 스크립트 실행 에러 - 보안 오류: (:) [], PSSecurityException
grep.jj
2024. 2. 16. 10:33
에러 내용
PS C:\Users\user\Desktop> .\wsl-connect-external.ps1 .\wsl-connect-external.ps1 : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\user\Desktop\wsl-connect-external. ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오. 위치 줄:1 문자:1 + .\wsl-connect-external.ps1 + ~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : 보안 오류: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess |
해결법
PS C:\Users\user\Desktop> PowerShell.exe -ExecutionPolicy Bypass -File .\wsl-connect-external.ps1 |
시행착오
1) 관리자 권한 실행 ✔️ 윈도우 재부팅될 때마다 해당 스크립트가 실행되도록 걸면 아주 편하다! (라고 생각만 하고 있다😁) https://dragontory.tistory.com/559 |