VBA Macro Notification Settings: wartość rejestru vbawarnings i 3 więcej (visio\security)UżytkownikHKCU\software\policies\microsoft\office\16.0\visio\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 Visio 2016 › Visio 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\visio\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\visio\security" /v "vbawarnings" /t REG_DWORD /d 2 /f
:: Disable all except digitally signed macros
reg add "HKCU\software\policies\microsoft\office\16.0\visio\security" /v "vbawarnings" /t REG_DWORD /d 3 /f
:: Disable all without notification
reg add "HKCU\software\policies\microsoft\office\16.0\visio\security" /v "vbawarnings" /t REG_DWORD /d 4 /f
:: Enable all macros (not recommended)
reg add "HKCU\software\policies\microsoft\office\16.0\visio\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\visio\security' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Disable all with notification
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\visio\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\visio\security' -Name 'vbawarnings' -PropertyType DWord -Value 3 -Force | Out-Null
# Disable all without notification
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\visio\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\visio\security' -Name 'vbawarnings' -PropertyType DWord -Value 1 -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\visio\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\visio\security" /v "vbadigsigtrustedpublishers" /t REG_DWORD /d 1 /f
:: Niezaznaczone
reg add "HKCU\software\policies\microsoft\office\16.0\visio\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\visio\security' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Zaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\visio\security' -Name 'vbadigsigtrustedpublishers' -PropertyType DWord -Value 1 -Force | Out-Null
# Niezaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\visio\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\visio\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\visio\security" /v "vbarequirelmtrustedpublisher" /t REG_DWORD /d 1 /f
:: Niezaznaczone
reg add "HKCU\software\policies\microsoft\office\16.0\visio\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\visio\security' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Zaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\visio\security' -Name 'vbarequirelmtrustedpublisher' -PropertyType DWord -Value 1 -Force | Out-Null
# Niezaznaczone
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\visio\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\visio\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\visio\security" /v "vbarequiredigsigwithcodesigningeku" /t REG_DWORD /d 1 /f
:: Niezaznaczone
reg add "HKCU\software\policies\microsoft\office\16.0\visio\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\visio\security' -Force | Out-Null

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