사용자 계정 컨트롤: 관리자 승인 모드에서 관리자에 대한 권한 상승 확인 방법 레지스트리 값 ConsentPromptBehaviorAdmin컴퓨터HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System
레지스트리
ConsentPromptBehaviorAdmin
REG_DWORD컴퓨터- 활성 값
- 선택 값에 따름
- 요소
- 사용자 계정 컨트롤: 관리자 승인 모드에서 관리자에 대한 권한 상승 확인 방법
| 항목 | 저장 값 |
|---|---|
| 권한 상승 전에 확인 안 함 | 0 |
| 보안된 데스크톱에서 자격 증명 확인 | 1 |
| 보안된 데스크톱에서 동의 확인 | 2 |
| 자격 증명 확인 | 3 |
| 동의 확인 | 4 |
| 비 Windows 바이너리에 대한 동의 확인 | 5 |
.reg · CMD · PowerShell로 적용하기
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] ; 선택 항목 (하나만 사용) ; 권한 상승 전에 확인 안 함 "ConsentPromptBehaviorAdmin"=dword:00000000 ; 보안된 데스크톱에서 자격 증명 확인 "ConsentPromptBehaviorAdmin"=dword:00000001 ; 보안된 데스크톱에서 동의 확인 "ConsentPromptBehaviorAdmin"=dword:00000002 ; 자격 증명 확인 "ConsentPromptBehaviorAdmin"=dword:00000003 ; 동의 확인 "ConsentPromptBehaviorAdmin"=dword:00000004 ; 비 Windows 바이너리에 대한 동의 확인 "ConsentPromptBehaviorAdmin"=dword:00000005
CMD
:: 선택 항목 (하나만 사용) :: 권한 상승 전에 확인 안 함 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d 0 /f :: 보안된 데스크톱에서 자격 증명 확인 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d 1 /f :: 보안된 데스크톱에서 동의 확인 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d 2 /f :: 자격 증명 확인 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d 3 /f :: 동의 확인 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d 4 /f :: 비 Windows 바이너리에 대한 동의 확인 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d 5 /f
PowerShell
# 공통: 키 만들기 New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null # 선택 항목 (하나만 사용) # 권한 상승 전에 확인 안 함 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorAdmin' -PropertyType DWord -Value 0 -Force | Out-Null # 보안된 데스크톱에서 자격 증명 확인 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorAdmin' -PropertyType DWord -Value 1 -Force | Out-Null # 보안된 데스크톱에서 동의 확인 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorAdmin' -PropertyType DWord -Value 2 -Force | Out-Null # 자격 증명 확인 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorAdmin' -PropertyType DWord -Value 3 -Force | Out-Null # 동의 확인 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorAdmin' -PropertyType DWord -Value 4 -Force | Out-Null # 비 Windows 바이너리에 대한 동의 확인 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorAdmin' -PropertyType DWord -Value 5 -Force | Out-Null