Office-Skripts in Excel für Windows-Desktop deaktivieren
| Registrierungswert | disableofficescripts |
| Gruppenrichtlinie | Office-Skripts in Excel für Windows-Desktop deaktivieren |
| Englische Version | Disable Office Scripts in Excel for Windows Desktop |
| Intune-Einstellungskatalog | Disable Office Scripts in Excel for Windows Desktop (User) |
| Bereich | Benutzer · HKCU |
| ADMX | excel16.admx · L_ExcelDisableOfficeScripts |
Pfad der Gruppenrichtlinie
Registrierung
| Wert | Daten |
|---|---|
HKCU\Software\policies\microsoft\office\16.0\excel\options | |
| disableofficescripts | Enabled = 1 · 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\excel\options"
foreach ($name in @('disableofficescripts')) {
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\excel\options"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'disableofficescripts' -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null # Enabled
'Done.'
}
catch { Write-Error "Failed: $($_.Exception.Message)" }Deaktivieren
# --- Settings ---
$root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>'
try {
$key = "$root\Software\policies\microsoft\office\16.0\excel\options"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'disableofficescripts' -PropertyType DWord -Value 0 -Force -ErrorAction Stop | Out-Null # Disabled
'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\excel\options" Remove-ItemProperty -Path $key -Name 'disableofficescripts' -ErrorAction SilentlyContinue 'Policy values removed (Not configured).'
Intune (Einstellungskatalog)
Disable Office Scripts in Excel for Windows Desktop (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/excel16v7~Policy~L_MicrosoftOfficeExcel~L_miscellaneous168/L_ExcelDisableOfficeScripts |
| Datentyp | String |
| Wert | <enabled/> · <disabled/> |
Cloud Policy
Cloud Policy (config.office.com → Anpassung → Richtlinienverwaltung) enthält viele Benutzerrichtlinien der Microsoft 365 Apps – suchen nach Disable Office Scripts in Excel for Windows Desktop. Gilt auch auf nicht verwalteten Geräten und hat Vorrang vor GPO und Intune bei derselben Einstellung.
Erklärung von Microsoft
This policy setting controls whether Office Scripts (including the relevant commands on the Automate tab) are available for use.
If you enable this policy setting, Office Scripts will not be available for use on the installed Excel app on a desktop.
If you disable or don't configure this policy setting, Office Scripts will be available for use provided all other prerequisites are met, including the applicable Microsoft 365 subscription license.
Note: This policy setting is independent of Office Scripts settings available to administrators in the Microsoft 365 Admin Center. Admin Center settings are always honored by the Excel app regardless of the state of this policy; however, turning on this policy will also hide Office Scripts-related entry points.
Gleiche Kategorie: Microsoft Excel 2016 › Verschiedenes
- Diagrammkatalogpfadgallerypath
- Vierstellige Jahresanzeige aktivierenenablefourdigityeardisplay
- Netzwerkdateien nicht lokal zwischenspeichernnetworkresiliency
- OLAP PivotTable-UDF-Sicherheitseinstellungolapudfsecurity
- Alle nicht verwalteten Add-ins blockierenrestricttolist
- Liste der verwalteten Add-Ins
- Den Office-Startbildschirm für Excel deaktivierendisableboottoofficestart
- Pfad zu Persönliche Vorlagen für Excelpersonaltemplates
- Registerkarte "Benutzerdefinierte Vorlagen" in Excel auf dem Office-Startbildschirm und im Bereich "Datei" | "Neu" standardmäßig anzeigenofficestartdefaulttab
Alle Richtlinien dieser Kategorie · Alle 173 Richtlinien von excel16.admx