Umfang der Makrolaufzeitüberprüfung: Registrierungswert macroruntimescanscopeBenutzerHKCU\software\policies\microsoft\office\16.0\common\security
- Richtlinien-ID
- L_MacroRuntimeScanScope
- Bereich
- Benutzerkonfiguration
- Unterstützt unter
- Mindestens Windows Server 2016, Windows 10
- Quelle
- Microsoft 365 Apps / Office Administrative Templates (Version 5568.1000)
- Kategorie
- Microsoft Office 2016 › Sicherheitseinstellungen
Registrierung
macroruntimescanscope
REG_DWORDBenutzerHKCU\software\policies\microsoft\office\16.0\common\security Aktueller Schlüssel
- Wert bei Aktivierung
- Hängt vom Wert der Option ab
- Element
- -
| Eintrag | Gespeicherter Wert |
|---|---|
| Für alle Dokumente deaktivieren | 0 |
| Für Dokumente mit geringer Vertrauenswürdigkeit aktivieren | 1 |
| Für alle Dokumente aktivieren | 2 |
| Scan excluding documents marked as trusted by an admin | 3 |
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\security] ; Optionen (nur eine verwenden) ; Für alle Dokumente deaktivieren "macroruntimescanscope"=dword:00000000 ; Für Dokumente mit geringer Vertrauenswürdigkeit aktivieren "macroruntimescanscope"=dword:00000001 ; Für alle Dokumente aktivieren "macroruntimescanscope"=dword:00000002 ; Scan excluding documents marked as trusted by an admin "macroruntimescanscope"=dword:00000003
CMD
:: Optionen (nur eine verwenden) :: Für alle Dokumente deaktivieren reg add "HKCU\software\policies\microsoft\office\16.0\common\security" /v "macroruntimescanscope" /t REG_DWORD /d 0 /f :: Für Dokumente mit geringer Vertrauenswürdigkeit aktivieren reg add "HKCU\software\policies\microsoft\office\16.0\common\security" /v "macroruntimescanscope" /t REG_DWORD /d 1 /f :: Für alle Dokumente aktivieren reg add "HKCU\software\policies\microsoft\office\16.0\common\security" /v "macroruntimescanscope" /t REG_DWORD /d 2 /f :: Scan excluding documents marked as trusted by an admin reg add "HKCU\software\policies\microsoft\office\16.0\common\security" /v "macroruntimescanscope" /t REG_DWORD /d 3 /f
PowerShell
# Gemeinsam: Schlüssel erstellen New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Force | Out-Null # Optionen (nur eine verwenden) # Für alle Dokumente deaktivieren New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Name 'macroruntimescanscope' -PropertyType DWord -Value 0 -Force | Out-Null # Für Dokumente mit geringer Vertrauenswürdigkeit aktivieren New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Name 'macroruntimescanscope' -PropertyType DWord -Value 1 -Force | Out-Null # Für alle Dokumente aktivieren New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Name 'macroruntimescanscope' -PropertyType DWord -Value 2 -Force | Out-Null # Scan excluding documents marked as trusted by an admin New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\security' -Name 'macroruntimescanscope' -PropertyType DWord -Value 3 -Force | Out-Null