스크립트 실행 켜기 레지스트리 값 EnableScripts 외 1개컴퓨터HKLM\Software\Policies\Microsoft\Windows\PowerShell
- 정책 ID
- EnableScripts
- 범위
- 컴퓨터 구성, 사용자 구성
- 지원 OS
- Microsoft Windows 7 또는 Windows Server 2008 이상 제품군
- 출처
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (버전 1.0)
- 카테고리
- Windows 구성 요소 › Windows PowerShell
레지스트리
EnableScripts
REG_DWORD컴퓨터사용자…\Software\Policies\Microsoft\Windows\PowerShellHKLM\Software\Policies\Microsoft\Windows\PowerShell 현재 키
HKCU\Software\Policies\Microsoft\Windows\PowerShell
HKCU\Software\Policies\Microsoft\Windows\PowerShell
- 활성 값
- 1
- 비활성 값
- 0
.reg · CMD · PowerShell로 적용하기
컴퓨터전역 설정
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell] ; 선택 항목 (하나만 사용) ; 사용 "EnableScripts"=dword:00000001 ; 사용 안 함 "EnableScripts"=dword:00000000
CMD
:: 선택 항목 (하나만 사용) :: 사용 reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell" /v "EnableScripts" /t REG_DWORD /d 1 /f :: 사용 안 함 reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell" /v "EnableScripts" /t REG_DWORD /d 0 /f
PowerShell
# 공통: 키 만들기 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell' -Force | Out-Null # 선택 항목 (하나만 사용) # 사용 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell' -Name 'EnableScripts' -PropertyType DWord -Value 1 -Force | Out-Null # 사용 안 함 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell' -Name 'EnableScripts' -PropertyType DWord -Value 0 -Force | Out-Null
사용자계정별 설정
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell] ; 선택 항목 (하나만 사용) ; 사용 "EnableScripts"=dword:00000001 ; 사용 안 함 "EnableScripts"=dword:00000000
CMD
:: 선택 항목 (하나만 사용) :: 사용 reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell" /v "EnableScripts" /t REG_DWORD /d 1 /f :: 사용 안 함 reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell" /v "EnableScripts" /t REG_DWORD /d 0 /f
PowerShell
# 공통: 키 만들기 New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell' -Force | Out-Null # 선택 항목 (하나만 사용) # 사용 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell' -Name 'EnableScripts' -PropertyType DWord -Value 1 -Force | Out-Null # 사용 안 함 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell' -Name 'EnableScripts' -PropertyType DWord -Value 0 -Force | Out-Null
ExecutionPolicy
REG_SZ컴퓨터사용자…\Software\Policies\Microsoft\Windows\PowerShellHKLM\Software\Policies\Microsoft\Windows\PowerShell 현재 키
HKCU\Software\Policies\Microsoft\Windows\PowerShell
HKCU\Software\Policies\Microsoft\Windows\PowerShell
- 활성 값
- 선택 값에 따름
- 요소
- 실행 정책
| 항목 | 저장 값 |
|---|---|
| 서명된 스크립트만 허용 | AllSigned |
| 로컬 스크립트 및 서명된 원격 스크립트 허용 | RemoteSigned |
| 모든 스크립트 허용 | Unrestricted |
.reg · CMD · PowerShell로 적용하기
컴퓨터전역 설정
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell] ; 선택 항목 (하나만 사용) ; 서명된 스크립트만 허용 "ExecutionPolicy"="AllSigned" ; 로컬 스크립트 및 서명된 원격 스크립트 허용 "ExecutionPolicy"="RemoteSigned" ; 모든 스크립트 허용 "ExecutionPolicy"="Unrestricted"
CMD
:: 선택 항목 (하나만 사용) :: 서명된 스크립트만 허용 reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell" /v "ExecutionPolicy" /t REG_SZ /d "AllSigned" /f :: 로컬 스크립트 및 서명된 원격 스크립트 허용 reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell" /v "ExecutionPolicy" /t REG_SZ /d "RemoteSigned" /f :: 모든 스크립트 허용 reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell" /v "ExecutionPolicy" /t REG_SZ /d "Unrestricted" /f
PowerShell
# 공통: 키 만들기 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell' -Force | Out-Null # 선택 항목 (하나만 사용) # 서명된 스크립트만 허용 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell' -Name 'ExecutionPolicy' -PropertyType String -Value 'AllSigned' -Force | Out-Null # 로컬 스크립트 및 서명된 원격 스크립트 허용 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell' -Name 'ExecutionPolicy' -PropertyType String -Value 'RemoteSigned' -Force | Out-Null # 모든 스크립트 허용 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell' -Name 'ExecutionPolicy' -PropertyType String -Value 'Unrestricted' -Force | Out-Null
사용자계정별 설정
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell] ; 선택 항목 (하나만 사용) ; 서명된 스크립트만 허용 "ExecutionPolicy"="AllSigned" ; 로컬 스크립트 및 서명된 원격 스크립트 허용 "ExecutionPolicy"="RemoteSigned" ; 모든 스크립트 허용 "ExecutionPolicy"="Unrestricted"
CMD
:: 선택 항목 (하나만 사용) :: 서명된 스크립트만 허용 reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell" /v "ExecutionPolicy" /t REG_SZ /d "AllSigned" /f :: 로컬 스크립트 및 서명된 원격 스크립트 허용 reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell" /v "ExecutionPolicy" /t REG_SZ /d "RemoteSigned" /f :: 모든 스크립트 허용 reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell" /v "ExecutionPolicy" /t REG_SZ /d "Unrestricted" /f
PowerShell
# 공통: 키 만들기 New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell' -Force | Out-Null # 선택 항목 (하나만 사용) # 서명된 스크립트만 허용 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell' -Name 'ExecutionPolicy' -PropertyType String -Value 'AllSigned' -Force | Out-Null # 로컬 스크립트 및 서명된 원격 스크립트 허용 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell' -Name 'ExecutionPolicy' -PropertyType String -Value 'RemoteSigned' -Force | Out-Null # 모든 스크립트 허용 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell' -Name 'ExecutionPolicy' -PropertyType String -Value 'Unrestricted' -Force | Out-Null