Tech 기록지/Elastic Stack
[ElasticStack-4] Windows PowerShell execution policy (feat. Filebeat)
Lio Grande
2020. 4. 6. 16:27
PowerShell execution 정책의 기본값은 다음과 같다.
Default
- Restricted for Windows clients.
- RemoteSigned for Windows server.
'install-service-filebeat.ps1'을 PowerShell로 실행 시, 오류가 발생한다면, 기본적으로는 다음과 같은 명령어를 사용하면 권한 할당이 정상적으로 이루어져 .ps1 스크립트를 실행 가능하다.
> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
나머지 Policy 정책을 보고 싶다면 다음 링크를 참고하면 된다.
about_Execution_Policies - PowerShell
About Execution Policies In this article --> Short Description Describes the PowerShell execution policies and explains how to manage them. Long Description PowerShell's execution policy is a safety feature that controls the conditions under which PowerShe
docs.microsoft.com