반응형
vscode 사용 중에 보안오류가 떴다.
오류 : PSSecurityException
+ CategoryInfo : 보안 오류: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
cmd를 관리자 권한으로 사용 시에는 문제가 없었는데, vscode를 사용하니 해당 문제가 생겼다.
해당문제는 권한이 주어지지 않아서 보안오류가 뜬 현상이라고 한다.
그래서 "Get-ExecutionPolicy"라는 명령어를 작성 시 아래와 같이 나올 것이다.
PS C:\project> Get-ExecutionPolicy
Restricted
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine Undefined
그래서 이 부분을 해결하기 위해서
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine
라는 명령어를 쳐주고서 다시 list 목록을 들고 오면 아래와 같이 노출이 된다.
PS C:\project> Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine
PS C:\project> Get-ExecutionPolicy -List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine Unrestricted
이러 고난뒤 다시 원래 하던 작업을 하면, 문제없이 잘 작동이 되는 것이 확인이 된다.
반응형
'IT > error' 카테고리의 다른 글
[포토샵] 스탬프 오류 : could not use the clone stamp because the area to clone has not been defined (0) | 2024.10.26 |
---|---|
Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob (0) | 2024.09.13 |
pennyroyal.exe 응용 프로그램 오류 (0) | 2024.09.04 |
uninstall information file not found. aborting uninstallation (0) | 2024.05.08 |
Uncaught SyntaxError: Unexpected token ':' (0) | 2024.05.03 |
댓글