Paramètres de notification de macro VBA : valeur de Registre vbawarnings (ms project\security)UtilisateurHKCU\software\policies\microsoft\office\16.0\ms project\security
- ID de stratégie
- L_VBAWarningsPolicy
- Étendue
- Configuration utilisateur
- Pris en charge sur
- Au minimum Windows Server 2008 R2 ou Windows 7
- Source
- Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
- Catégorie
- Microsoft Project 2016 › Options Project › Sécurité › Centre de gestion de la confidentialité
Registre
vbawarnings
REG_DWORDUtilisateur- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- -
| Entrée | Valeur stockée |
|---|---|
| Désactiver tout avec notification | 2 |
| Désactiver tout sauf les macros signées numériquement | 3 |
| Désactiver tout sans notification | 4 |
| Activer toutes les macros (non recommandé) | 1 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\ms project\security] ; Options (en utiliser une seule) ; Désactiver tout avec notification "vbawarnings"=dword:00000002 ; Désactiver tout sauf les macros signées numériquement "vbawarnings"=dword:00000003 ; Désactiver tout sans notification "vbawarnings"=dword:00000004 ; Activer toutes les macros (non recommandé) "vbawarnings"=dword:00000001
CMD
:: Options (en utiliser une seule) :: Désactiver tout avec notification reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "vbawarnings" /t REG_DWORD /d 2 /f :: Désactiver tout sauf les macros signées numériquement reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "vbawarnings" /t REG_DWORD /d 3 /f :: Désactiver tout sans notification reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "vbawarnings" /t REG_DWORD /d 4 /f :: Activer toutes les macros (non recommandé) reg add "HKCU\software\policies\microsoft\office\16.0\ms project\security" /v "vbawarnings" /t REG_DWORD /d 1 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Force | Out-Null # Options (en utiliser une seule) # Désactiver tout avec notification New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'vbawarnings' -PropertyType DWord -Value 2 -Force | Out-Null # Désactiver tout sauf les macros signées numériquement New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'vbawarnings' -PropertyType DWord -Value 3 -Force | Out-Null # Désactiver tout sans notification New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'vbawarnings' -PropertyType DWord -Value 4 -Force | Out-Null # Activer toutes les macros (non recommandé) New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\security' -Name 'vbawarnings' -PropertyType DWord -Value 1 -Force | Out-Null