VBA Macro Notification Settings: kayıt defteri değeri vbawarnings (ms project\security)KullanıcıHKCU\software\policies\microsoft\office\16.0\ms project\security

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

İlke Kimliği
L_VBAWarningsPolicy
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 Project 2016 › Project Options › Security › Trust Center

Kayıt defteri

vbawarnings

REG_DWORDKullanıcı
Etkin değeri
Seçenek değerine bağlıdır
Öğe
-
Seçenekler
MaddeSaklanan değer
Disable all with notification2
Disable all except digitally signed macros3
Disable all without notification4
Enable all macros (not recommended)1
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\ms project\security]

; Seçenekler (yalnızca birini kullanın)
; Disable all with notification
"vbawarnings"=dword:00000002
; Disable all except digitally signed macros
"vbawarnings"=dword:00000003
; Disable all without notification
"vbawarnings"=dword:00000004
; Enable all macros (not recommended)
"vbawarnings"=dword:00000001
CMD
:: Seçenekler (yalnızca birini kullanın)

:: Disable all with notification
reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "vbawarnings" /t REG_DWORD /d 2 /f
:: Disable all except digitally signed macros
reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "vbawarnings" /t REG_DWORD /d 3 /f
:: Disable all without notification
reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "vbawarnings" /t REG_DWORD /d 4 /f
:: Enable all macros (not recommended)
reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "vbawarnings" /t REG_DWORD /d 1 /f
PowerShell
# Ortak: anahtarı oluştur
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Force | Out-Null

# Seçenekler (yalnızca birini kullanın)
# Disable all with notification
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'vbawarnings' -PropertyType DWord -Value 2 -Force | Out-Null
# Disable all except digitally signed macros
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'vbawarnings' -PropertyType DWord -Value 3 -Force | Out-Null
# Disable all without notification
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'vbawarnings' -PropertyType DWord -Value 4 -Force | Out-Null
# Enable all macros (not recommended)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'vbawarnings' -PropertyType DWord -Value 1 -Force | Out-Null