Automatiseringsbeveiliging: registerwaarde automationsecurityGebruikerHKCU\software\policies\microsoft\office\common\security
- Beleids-ID
- L_AutomationSecurity
- Bereik
- Gebruikersconfiguratie
- Ondersteund op
- Minimaal Windows Server 2008 R2 of Windows 7
- Bron
- Microsoft 365 Apps / Office Administrative Templates (versie 5568.1000)
- Categorie
- Microsoft Office 2016 › Beveiligingsinstellingen
Register
automationsecurity
REG_DWORDGebruikerHKCU\software\policies\microsoft\office\common\security Huidige sleutel
- Waarde bij ingeschakeld
- Afhankelijk van de waarde van de optie
- Element
- Beveiligingsniveau voor automatisering instellen
| Item | Opgeslagen waarde |
|---|---|
| Macro's standaard uitschakelen | 3 |
| Macrobeveiligingsniveau van toepassing gebruiken | 2 |
| Macro's zijn ingeschakeld (standaard) | 1 |
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\common\security] ; Opties (gebruik er maar één) ; Macro's standaard uitschakelen "automationsecurity"=dword:00000003 ; Macrobeveiligingsniveau van toepassing gebruiken "automationsecurity"=dword:00000002 ; Macro's zijn ingeschakeld (standaard) "automationsecurity"=dword:00000001
CMD
:: Opties (gebruik er maar één) :: Macro's standaard uitschakelen reg add "HKCU\software\policies\microsoft\office\common\security" /v "automationsecurity" /t REG_DWORD /d 3 /f :: Macrobeveiligingsniveau van toepassing gebruiken reg add "HKCU\software\policies\microsoft\office\common\security" /v "automationsecurity" /t REG_DWORD /d 2 /f :: Macro's zijn ingeschakeld (standaard) reg add "HKCU\software\policies\microsoft\office\common\security" /v "automationsecurity" /t REG_DWORD /d 1 /f
PowerShell
# Algemeen: sleutel maken New-Item -Path 'HKCU:\software\policies\microsoft\office\common\security' -Force | Out-Null # Opties (gebruik er maar één) # Macro's standaard uitschakelen New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\common\security' -Name 'automationsecurity' -PropertyType DWord -Value 3 -Force | Out-Null # Macrobeveiligingsniveau van toepassing gebruiken New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\common\security' -Name 'automationsecurity' -PropertyType DWord -Value 2 -Force | Out-Null # Macro's zijn ingeschakeld (standaard) New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\common\security' -Name 'automationsecurity' -PropertyType DWord -Value 1 -Force | Out-Null