Automation Security: kayıt defteri değeri automationsecurityKullanıcıHKCU\software\policies\microsoft\office\common\security

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

İlke Kimliği
L_AutomationSecurity
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 Office 2016 › Security Settings

Kayıt defteri

automationsecurity

REG_DWORDKullanıcı
Etkin değeri
Seçenek değerine bağlıdır
Öğe
Set the Automation Security level
Seçenekler
MaddeSaklanan değer
Disable macros by default3
Use application macro security level2
Macros enabled (default)1
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00

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

; Seçenekler (yalnızca birini kullanın)
; Disable macros by default
"automationsecurity"=dword:00000003
; Use application macro security level
"automationsecurity"=dword:00000002
; Macros enabled (default)
"automationsecurity"=dword:00000001
CMD
:: Seçenekler (yalnızca birini kullanın)

:: Disable macros by default
reg add "HKCU\software\policies\microsoft\office\common\security" /v "automationsecurity" /t REG_DWORD /d 3 /f
:: Use application macro security level
reg add "HKCU\software\policies\microsoft\office\common\security" /v "automationsecurity" /t REG_DWORD /d 2 /f
:: Macros enabled (default)
reg add "HKCU\software\policies\microsoft\office\common\security" /v "automationsecurity" /t REG_DWORD /d 1 /f
PowerShell
# Ortak: anahtarı oluştur
New-Item -Path 'HKCU:\software\policies\microsoft\office\common\security' -Force | Out-Null

# Seçenekler (yalnızca birini kullanın)
# Disable macros by default
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\common\security' -Name 'automationsecurity' -PropertyType DWord -Value 3 -Force | Out-Null
# Use application macro security level
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\common\security' -Name 'automationsecurity' -PropertyType DWord -Value 2 -Force | Out-Null
# Macros enabled (default)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\common\security' -Name 'automationsecurity' -PropertyType DWord -Value 1 -Force | Out-Null