주 메뉴 열기

wwiki β

바뀜

PowerShell

1,437 바이트 추가됨, 2022년 1월 30일 (일) 07:44
편집 요약 없음
== about_Execution_Policies ==
PowerShell 실행 정책은 PowerShell에서 구성 파일을 로드하고 스크립트를 실행하는 조건을 제어한다.
 
다음 명령은 유효한 실행정책을 가져온다.<syntaxhighlight lang="powershell">
Get-ExecutionPolicy
</syntaxhighlight>현재 세션에 영향을 주는 모든 실행 정책을 가져오고 우선 순위에 따라 표시 합니다.<syntaxhighlight lang="powershell">
Get-ExecutionPolicy -List
</syntaxhighlight>
 
=== PowerShell 실행 정책 ===
 
==== AllSigned ====
모두 서명이 되어야 실행된다.
 
==== Bypass ====
 
==== Default ====
기본 실행정책. 윈도우 클라이언트는 Restricted, 윈도우 서버는 RemoteSigned 으로 설정된다.
 
==== RemoteSigned ====
 
==== Restricted ====
제한된
 
==== Undefined ====
정의되지 않은.
 
==== Unrestricted ====
제한이 없다. 즉 모두 실행된다.
 
=== 실행 정책 범위 ===
 
==== MachinePolicy ====
컴퓨터의 모든 사용자에 대해 정책 설정합니다.
 
==== UserPolicy ====
컴퓨터의 현재 사용자에 대한 정책 설정합니다.
 
==== Process ====
 
==== CurrentUser ====
 
==== LocalMachine ====
현재 컴퓨터의 모든 사용자에 게 영향을 줍니다.
 
 
다음 명령으로 정책을 설정할 수 있다. <syntaxhighlight lang="powershell">
Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope CurrentUser
</syntaxhighlight><br />
== 프로세스 및 서비스 관리 ==
Get-Service ssh*
</syntaxhighlight><br />
[[분류:윈도우]]
편집
2,431