Block macros from running in Office files from the internet: kayıt defteri değeri blockcontentexecutionfrominternet (publisher\security)KullanıcıHKCU\software\policies\microsoft\office\16.0\publisher\security

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

İlke Kimliği
L_BlockMacroExecutionFromInternet
Kapsam
Kullanıcı Yapılandırması
Desteklenen işletim sistemleri
En az Windows Server 2008 R2 veya Windows 7
Kaynak
Microsoft 365 Apps / Office Administrative Templates (sürüm 5568.1000)
Kategori
Microsoft Publisher 2016 › Security › Trust Center

Kayıt defteri

blockcontentexecutionfrominternet

REG_DWORDKullanıcı
Etkin değeri
1
Devre dışı değeri
0
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00

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

; Seçenekler (yalnızca birini kullanın)
; Etkin
"blockcontentexecutionfrominternet"=dword:00000001
; Devre Dışı
"blockcontentexecutionfrominternet"=dword:00000000
CMD
:: Seçenekler (yalnızca birini kullanın)

:: Etkin
reg add "HKCU\software\policies\microsoft\office\16.0\publisher\security" /v "blockcontentexecutionfrominternet" /t REG_DWORD /d 1 /f
:: Devre Dışı
reg add "HKCU\software\policies\microsoft\office\16.0\publisher\security" /v "blockcontentexecutionfrominternet" /t REG_DWORD /d 0 /f
PowerShell
# Ortak: anahtarı oluştur
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\publisher\security' -Force | Out-Null

# Seçenekler (yalnızca birini kullanın)
# Etkin
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\publisher\security' -Name 'blockcontentexecutionfrominternet' -PropertyType DWord -Value 1 -Force | Out-Null
# Devre Dışı
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\publisher\security' -Name 'blockcontentexecutionfrominternet' -PropertyType DWord -Value 0 -Force | Out-Null