Vordefinierte Befehle deaktivieren
| Registrierungswert | sendtomailrecipient |
| Gruppenrichtlinie | Vordefinierte Befehle deaktivieren |
| Englische Version | Disable predefined commands |
| Intune-Einstellungskatalog | Disable commands (User) |
| Bereich | Benutzer · HKCU |
| ADMX | access16.admx · L_Disablecommandbarbuttonsandmenuitems |
Pfad der Gruppenrichtlinie
Registrierung
| Wert | Daten |
|---|---|
HKCU\Software\policies\microsoft\office\16.0\access\disabledcmdbaritemscheckboxes | |
| sendtomailrecipient | Enabled = 2188 · Disabled = 0 |
| toolssecuritysetpwd | Enabled = 1814 · Disabled = 0 |
| toolssecurityperms | Enabled = 572 · Disabled = 0 |
| toolssecurityaccts | Enabled = 1816 · Disabled = 0 |
| toolssecuritysecwiz | Enabled = 1815 · Disabled = 0 |
| toolssecurityencrypt | Enabled = 2074 · Disabled = 0 |
| toolsmacrovbe | Enabled = 1695 · Disabled = 0 |
| accrunmacro | Enabled = 5745 · Disabled = 0 |
| toolsmacroconvertmacros | Enabled = 2948 · Disabled = 0 |
| toolsmacrocreateshortcutmenu | Enabled = 1570 · Disabled = 0 |
| addinsmenuicon | Enabled = 15719 · Disabled = 0 |
Nicht konfiguriert = der Wert existiert nicht – es gilt der Standard der Anwendung, Benutzer dürfen die Einstellung ändern.
PowerShell
Aktuellen Wert prüfen (nur lesen)
# --- Settings ---
$root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>'
$key = "$root\Software\policies\microsoft\office\16.0\access\disabledcmdbaritemscheckboxes"
foreach ($name in @('sendtomailrecipient', 'toolssecuritysetpwd', 'toolssecurityperms', 'toolssecurityaccts', 'toolssecuritysecwiz', 'toolssecurityencrypt', 'toolsmacrovbe', 'accrunmacro', 'toolsmacroconvertmacros', 'toolsmacrocreateshortcutmenu', 'addinsmenuicon')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}Adminrechte nötig: HKCU\Software\Policies ist für Standardbenutzer schreibgeschützt. Eine erhöhte Sitzung schreibt in das HKCU des Admins – für einen anderen angemeldeten Benutzer $root auf Registry::HKEY_USERS\<SID> ändern.
Aktivieren
# --- Settings ---
$root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>'
try {
$key = "$root\Software\policies\microsoft\office\16.0\access\disabledcmdbaritemscheckboxes"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'sendtomailrecipient' -PropertyType DWord -Value 2188 -Force -ErrorAction Stop | Out-Null # Enabled
New-ItemProperty -Path $key -Name 'toolssecuritysetpwd' -PropertyType DWord -Value 1814 -Force -ErrorAction Stop | Out-Null # Enabled
New-ItemProperty -Path $key -Name 'toolssecurityperms' -PropertyType DWord -Value 572 -Force -ErrorAction Stop | Out-Null # Enabled
New-ItemProperty -Path $key -Name 'toolssecurityaccts' -PropertyType DWord -Value 1816 -Force -ErrorAction Stop | Out-Null # Enabled
New-ItemProperty -Path $key -Name 'toolssecuritysecwiz' -PropertyType DWord -Value 1815 -Force -ErrorAction Stop | Out-Null # Enabled
New-ItemProperty -Path $key -Name 'toolssecurityencrypt' -PropertyType DWord -Value 2074 -Force -ErrorAction Stop | Out-Null # Enabled
New-ItemProperty -Path $key -Name 'toolsmacrovbe' -PropertyType DWord -Value 1695 -Force -ErrorAction Stop | Out-Null # Enabled
New-ItemProperty -Path $key -Name 'accrunmacro' -PropertyType DWord -Value 5745 -Force -ErrorAction Stop | Out-Null # Enabled
New-ItemProperty -Path $key -Name 'toolsmacroconvertmacros' -PropertyType DWord -Value 2948 -Force -ErrorAction Stop | Out-Null # Enabled
New-ItemProperty -Path $key -Name 'toolsmacrocreateshortcutmenu' -PropertyType DWord -Value 1570 -Force -ErrorAction Stop | Out-Null # Enabled
New-ItemProperty -Path $key -Name 'addinsmenuicon' -PropertyType DWord -Value 15719 -Force -ErrorAction Stop | Out-Null # Enabled
'Done.'
}
catch { Write-Error "Failed: $($_.Exception.Message)" }Auf „Nicht konfiguriert“ zurücksetzen
# --- Settings --- $root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>' $key = "$root\Software\policies\microsoft\office\16.0\access\disabledcmdbaritemscheckboxes" Remove-ItemProperty -Path $key -Name 'sendtomailrecipient', 'toolssecuritysetpwd', 'toolssecurityperms', 'toolssecurityaccts', 'toolssecuritysecwiz', 'toolssecurityencrypt', 'toolsmacrovbe', 'accrunmacro', 'toolsmacroconvertmacros', 'toolsmacrocreateshortcutmenu', 'addinsmenuicon' -ErrorAction SilentlyContinue 'Policy values removed (Not configured).'
Intune (Einstellungskatalog)
Disable commands (User)
Einstellungskatalog → Einstellungen hinzufügen → nach dem Namen oben suchen.
Intune Settings Catalog Viewer ↗
Alternative: benutzerdefiniertes Profil (OMA-URI)
| OMA-URI | ./User/Vendor/MSFT/Policy/Config/access16v2~Policy~L_MicrosoftOfficeaccess~L_Disableitemsinuserinterface~L_Predefined/L_Disablecommandbarbuttonsandmenuitems |
| Datentyp | String |
| Wert | <enabled/> · <disabled/> |
Diese Richtlinie hat Optionen: nach <enabled/> je Element ein <data id="…" value="…"/> anhängen. Die Element-IDs stehen in der ADMX-Datei.
Cloud Policy
Cloud Policy (config.office.com → Anpassung → Richtlinienverwaltung) enthält viele Benutzerrichtlinien der Microsoft 365 Apps – suchen nach Disable predefined commands. Gilt auch auf nicht verwalteten Geräten und hat Vorrang vor GPO und Intune bei derselben Einstellung.
Erklärung von Microsoft
Diese Richtlinieneinstellung ermöglicht das Deaktivieren bestimmter Befehlsleisten-Schaltflächen und Menüelemente in den angegebenen Anwendungen.
Wenn Sie diese Richtlinieneinstellung aktivieren, können Sie bestimmte Befehlsleisten-Schaltflächen und Menüelemente in der Benutzeroberfläche für eine ausgewählte Anwendung deaktivieren. Die vordefinierte Liste der Befehlsleisten-Schaltflächen und Menüelemente, die deaktiviert werden können, wird verfügbar, wenn Sie diese Richtlinieneinstellung aktivieren.
Wenn Sie diese Richtlinieneinstellung deaktivieren oder nicht konfigurieren, wird die vordefinierte Liste der Befehlsleisten-Schaltflächen und Menüelemente für die Anwendung aktiviert.
Gleiche Kategorie: Microsoft Access 2016 › Elemente in Benutzeroberfläche deaktivieren › Vordefiniert
Alle Richtlinien dieser Kategorie · Alle 65 Richtlinien von access16.admx