File Handling API 사용 제어 레지스트리 값 DefaultFileHandlingGuardSetting컴퓨터HKLM\Software\Policies\Google\Chrome

정책 ID
DefaultFileHandlingGuardSetting
범위
컴퓨터 구성, 사용자 구성
지원 OS
Microsoft Windows 7 이상
출처
Google Chrome Policy Templates (버전 156.0.8078.80)
카테고리
Google › Google Chrome › 삭제된 정책

레지스트리

DefaultFileHandlingGuardSetting

REG_DWORD컴퓨터사용자
활성 값
선택 값에 따름
요소
File Handling API 사용 제어
선택 값
항목저장 값
웹 앱에서 File Handling API를 통해 파일 형식에 액세스하도록 허용 안함2
웹 앱에서 사용자에게 File Handling API를 통해 파일 형식 액세스 권한을 요청하도록 허용3
.reg · CMD · PowerShell로 적용하기
컴퓨터전역 설정
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome]

; 선택 항목 (하나만 사용)
; 웹 앱에서 File Handling API를 통해 파일 형식에 액세스하도록 허용 안함
"DefaultFileHandlingGuardSetting"=dword:00000002
; 웹 앱에서 사용자에게 File Handling API를 통해 파일 형식 액세스 권한을 요청하도록 허용
"DefaultFileHandlingGuardSetting"=dword:00000003
CMD
:: 선택 항목 (하나만 사용)

:: 웹 앱에서 File Handling API를 통해 파일 형식에 액세스하도록 허용 안함
reg add "HKLM\Software\Policies\Google\Chrome" /v "DefaultFileHandlingGuardSetting" /t REG_DWORD /d 2 /f
:: 웹 앱에서 사용자에게 File Handling API를 통해 파일 형식 액세스 권한을 요청하도록 허용
reg add "HKLM\Software\Policies\Google\Chrome" /v "DefaultFileHandlingGuardSetting" /t REG_DWORD /d 3 /f
PowerShell
# 공통: 키 만들기
New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null

# 선택 항목 (하나만 사용)
# 웹 앱에서 File Handling API를 통해 파일 형식에 액세스하도록 허용 안함
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DefaultFileHandlingGuardSetting' -PropertyType DWord -Value 2 -Force | Out-Null
# 웹 앱에서 사용자에게 File Handling API를 통해 파일 형식 액세스 권한을 요청하도록 허용
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DefaultFileHandlingGuardSetting' -PropertyType DWord -Value 3 -Force | Out-Null
사용자계정별 설정
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Google\Chrome]

; 선택 항목 (하나만 사용)
; 웹 앱에서 File Handling API를 통해 파일 형식에 액세스하도록 허용 안함
"DefaultFileHandlingGuardSetting"=dword:00000002
; 웹 앱에서 사용자에게 File Handling API를 통해 파일 형식 액세스 권한을 요청하도록 허용
"DefaultFileHandlingGuardSetting"=dword:00000003
CMD
:: 선택 항목 (하나만 사용)

:: 웹 앱에서 File Handling API를 통해 파일 형식에 액세스하도록 허용 안함
reg add "HKCU\Software\Policies\Google\Chrome" /v "DefaultFileHandlingGuardSetting" /t REG_DWORD /d 2 /f
:: 웹 앱에서 사용자에게 File Handling API를 통해 파일 형식 액세스 권한을 요청하도록 허용
reg add "HKCU\Software\Policies\Google\Chrome" /v "DefaultFileHandlingGuardSetting" /t REG_DWORD /d 3 /f
PowerShell
# 공통: 키 만들기
New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null

# 선택 항목 (하나만 사용)
# 웹 앱에서 File Handling API를 통해 파일 형식에 액세스하도록 허용 안함
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DefaultFileHandlingGuardSetting' -PropertyType DWord -Value 2 -Force | Out-Null
# 웹 앱에서 사용자에게 File Handling API를 통해 파일 형식 액세스 권한을 요청하도록 허용
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DefaultFileHandlingGuardSetting' -PropertyType DWord -Value 3 -Force | Out-Null