[PowerShell] 윈도우11에서 ps1 파일 powershell로 바로 실행

  1. ps1 파일 기본앱을 powershell 으로 변경
  2. powershell 을 실행해서 아래 코드 입력후 엔터.
  3. 이후에 ps1 파일을 더블클릭하면 파워쉘로 실행이 된다.
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Leave a Comment