매크로 런타임 검색 범위 레지스트리 값 macroruntimescanscope사용자HKCU\software\policies\microsoft\office\16.0\common\security

정책 ID
L_MacroRuntimeScanScope
범위
사용자 구성
지원 OS
Windows Server 2016, Windows 10 이상
출처
Microsoft 365 Apps / Office Administrative Templates (버전 5568.1000)
카테고리
Microsoft Office 2016 › 보안 설정

레지스트리

macroruntimescanscope

REG_DWORD사용자
활성 값
선택 값에 따름
요소
-
선택 값
항목저장 값
모든 문서에 대해 사용 안 함0
신뢰도 낮은 문서에 대해 사용1
모든 문서에 대해 사용2
Scan excluding documents marked as trusted by an admin3
.reg · CMD · PowerShell로 적용하기
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\security]

; 선택 항목 (하나만 사용)
; 모든 문서에 대해 사용 안 함
"macroruntimescanscope"=dword:00000000
; 신뢰도 낮은 문서에 대해 사용
"macroruntimescanscope"=dword:00000001
; 모든 문서에 대해 사용
"macroruntimescanscope"=dword:00000002
; Scan excluding documents marked as trusted by an admin
"macroruntimescanscope"=dword:00000003
CMD
:: 선택 항목 (하나만 사용)

:: 모든 문서에 대해 사용 안 함
reg add "HKCU\software\policies\microsoft\office\16.0\common\security" /v "macroruntimescanscope" /t REG_DWORD /d 0 /f
:: 신뢰도 낮은 문서에 대해 사용
reg add "HKCU\software\policies\microsoft\office\16.0\common\security" /v "macroruntimescanscope" /t REG_DWORD /d 1 /f
:: 모든 문서에 대해 사용
reg add "HKCU\software\policies\microsoft\office\16.0\common\security" /v "macroruntimescanscope" /t REG_DWORD /d 2 /f
:: Scan excluding documents marked as trusted by an admin
reg add "HKCU\software\policies\microsoft\office\16.0\common\security" /v "macroruntimescanscope" /t REG_DWORD /d 3 /f
PowerShell
# 공통: 키 만들기
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Force | Out-Null

# 선택 항목 (하나만 사용)
# 모든 문서에 대해 사용 안 함
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Name 'macroruntimescanscope' -PropertyType DWord -Value 0 -Force | Out-Null
# 신뢰도 낮은 문서에 대해 사용
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Name 'macroruntimescanscope' -PropertyType DWord -Value 1 -Force | Out-Null
# 모든 문서에 대해 사용
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Name 'macroruntimescanscope' -PropertyType DWord -Value 2 -Force | Out-Null
# Scan excluding documents marked as trusted by an admin
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Name 'macroruntimescanscope' -PropertyType DWord -Value 3 -Force | Out-Null