Macro Runtime Scan Scope: kayıt defteri değeri macroruntimescanscopeKullanıcıHKCU\software\policies\microsoft\office\16.0\common\security

Bu dilde resmi metin yok (İngilizce özgün metin gösteriliyor)

İlke Kimliği
L_MacroRuntimeScanScope
Kapsam
Kullanıcı Yapılandırması
Desteklenen işletim sistemleri
En az Windows Server 2016, Windows 10
Kaynak
Microsoft 365 Apps / Office Administrative Templates (sürüm 5568.1000)
Kategori
Microsoft Office 2016 › Security Settings

Kayıt defteri

macroruntimescanscope

REG_DWORDKullanıcı
Etkin değeri
Seçenek değerine bağlıdır
Öğe
-
Seçenekler
MaddeSaklanan değer
Disable for all documents0
Enable for low trust documents1
Enable for all documents2
Scan excluding documents marked as trusted by an admin3
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00

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

; Seçenekler (yalnızca birini kullanın)
; Disable for all documents
"macroruntimescanscope"=dword:00000000
; Enable for low trust documents
"macroruntimescanscope"=dword:00000001
; Enable for all documents
"macroruntimescanscope"=dword:00000002
; Scan excluding documents marked as trusted by an admin
"macroruntimescanscope"=dword:00000003
CMD
:: Seçenekler (yalnızca birini kullanın)

:: Disable for all documents
reg add "HKCU\software\policies\microsoft\office\16.0\common\security" /v "macroruntimescanscope" /t REG_DWORD /d 0 /f
:: Enable for low trust documents
reg add "HKCU\software\policies\microsoft\office\16.0\common\security" /v "macroruntimescanscope" /t REG_DWORD /d 1 /f
:: Enable for all documents
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
# Ortak: anahtarı oluştur
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Force | Out-Null

# Seçenekler (yalnızca birini kullanın)
# Disable for all documents
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Name 'macroruntimescanscope' -PropertyType DWord -Value 0 -Force | Out-Null
# Enable for low trust documents
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Name 'macroruntimescanscope' -PropertyType DWord -Value 1 -Force | Out-Null
# Enable for all documents
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