Macro Notification Settings: wartość rejestru vbawarnings i 4 więcejUżytkownikHKCU\software\policies\microsoft\office\16.0\excel\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 Excel 2016 › Excel Options › Security › Trust Center

Rejestr

vbawarnings

REG_DWORDUżytkownik
Wartość włączona
Zależy od wartości opcji
Element
-
Opcje
PozycjaZapisana wartość
Disable VBA macros without notification4
Disable VBA macros with notification2
Disable VBA macros except digitally signed macros3
Enable VBA 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\excel\security]

; Opcje (użyj tylko jednej)
; Disable VBA macros without notification
"vbawarnings"=dword:00000004
; Disable VBA macros with notification
"vbawarnings"=dword:00000002
; Disable VBA macros except digitally signed macros
"vbawarnings"=dword:00000003
; Enable VBA macros (not recommended)
"vbawarnings"=dword:00000001
CMD
:: Opcje (użyj tylko jednej)

:: Disable VBA macros without notification
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "vbawarnings" /t REG_DWORD /d 4 /f
:: Disable VBA macros with notification
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "vbawarnings" /t REG_DWORD /d 2 /f
:: Disable VBA macros except digitally signed macros
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "vbawarnings" /t REG_DWORD /d 3 /f
:: Enable VBA macros (not recommended)
reg add "HKCU\software\policies\microsoft\office\16.0\excel\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\excel\security' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Disable VBA macros without notification
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'vbawarnings' -PropertyType DWord -Value 4 -Force | Out-Null
# Disable VBA macros with notification
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'vbawarnings' -PropertyType DWord -Value 2 -Force | Out-Null
# Disable VBA macros except digitally signed macros
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'vbawarnings' -PropertyType DWord -Value 3 -Force | Out-Null
# Enable VBA macros (not recommended)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'vbawarnings' -PropertyType DWord -Value 1 -Force | Out-Null

xl4macrowarningfollowvba

REG_DWORDUżytkownik
Zaznaczone
1
Niezaznaczone
0
Element
Enable Excel 4.0 macros when VBA macros are enabled
Typ wartości
REG_DWORD
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; Zaznaczone
"xl4macrowarningfollowvba"=dword:00000001
; Niezaznaczone
"xl4macrowarningfollowvba"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Zaznaczone
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "xl4macrowarningfollowvba" /t REG_DWORD /d 1 /f
:: Niezaznaczone
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "xl4macrowarningfollowvba" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Zaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'xl4macrowarningfollowvba' -PropertyType DWord -Value 1 -Force | Out-Null
# Niezaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'xl4macrowarningfollowvba' -PropertyType DWord -Value 0 -Force | Out-Null

vbadigsigtrustedpublishers

REG_DWORDUżytkownik
Zaznaczone
1
Niezaznaczone
0
Element
Require macros to be signed by a trusted publisher
Typ wartości
REG_DWORD
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; Zaznaczone
"vbadigsigtrustedpublishers"=dword:00000001
; Niezaznaczone
"vbadigsigtrustedpublishers"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Zaznaczone
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "vbadigsigtrustedpublishers" /t REG_DWORD /d 1 /f
:: Niezaznaczone
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "vbadigsigtrustedpublishers" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Zaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'vbadigsigtrustedpublishers' -PropertyType DWord -Value 1 -Force | Out-Null
# Niezaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'vbadigsigtrustedpublishers' -PropertyType DWord -Value 0 -Force | Out-Null

vbarequirelmtrustedpublisher

REG_DWORDUżytkownik
Zaznaczone
1
Niezaznaczone
0
Element
Block certificates from trusted publishers that are only installed in the current user certificate store
Typ wartości
REG_DWORD
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; Zaznaczone
"vbarequirelmtrustedpublisher"=dword:00000001
; Niezaznaczone
"vbarequirelmtrustedpublisher"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Zaznaczone
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "vbarequirelmtrustedpublisher" /t REG_DWORD /d 1 /f
:: Niezaznaczone
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "vbarequirelmtrustedpublisher" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Zaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'vbarequirelmtrustedpublisher' -PropertyType DWord -Value 1 -Force | Out-Null
# Niezaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'vbarequirelmtrustedpublisher' -PropertyType DWord -Value 0 -Force | Out-Null

vbarequiredigsigwithcodesigningeku

REG_DWORDUżytkownik
Zaznaczone
1
Niezaznaczone
0
Element
Require Extended Key Usage (EKU) for certificates from trusted publishers
Typ wartości
REG_DWORD
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; Zaznaczone
"vbarequiredigsigwithcodesigningeku"=dword:00000001
; Niezaznaczone
"vbarequiredigsigwithcodesigningeku"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Zaznaczone
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "vbarequiredigsigwithcodesigningeku" /t REG_DWORD /d 1 /f
:: Niezaznaczone
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "vbarequiredigsigwithcodesigningeku" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Zaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'vbarequiredigsigwithcodesigningeku' -PropertyType DWord -Value 1 -Force | Out-Null
# Niezaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'vbarequiredigsigwithcodesigningeku' -PropertyType DWord -Value 0 -Force | Out-Null