VBA Macro Notification Settings: wartość rejestru vbawarnings (ms project\security)UżytkownikHKCU\software\policies\microsoft\office\16.0\ms project\security

Brak oficjalnego tekstu w tym języku (wyświetlono oryginał angielski)

Identyfikator zasady
L_VBAWarningsPolicy
Zakres
Konfiguracja użytkownika
Obsługiwane w systemach
System Windows Server 2008 R2 lub nowszy albo system Windows 7
Źródło
Microsoft 365 Apps / Office Administrative Templates (wersja 5568.1000)
Kategoria
Microsoft Project 2016 › Project Options › Security › Trust Center

Rejestr

vbawarnings

REG_DWORDUżytkownik
Wartość włączona
Zależy od wartości opcji
Element
-
Opcje
PozycjaZapisana wartość
Disable all with notification2
Disable all except digitally signed macros3
Disable all without notification4
Enable all macros (not recommended)1
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; 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
:: Opcje (użyj tylko jednej)

:: 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
# Wspólne: utwórz klucz
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Force | Out-Null

# Opcje (użyj tylko jednej)
# 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