OLAP PivotTable-UDF-Sicherheitseinstellung: Registrierungswert olapudfsecurityBenutzerHKCU\software\policies\microsoft\office\16.0\excel\options

Richtlinien-ID
L_OLAPPivotTableUserDefinedFunctionUDFsecuritysetting
Bereich
Benutzerkonfiguration
Unterstützt unter
Mindestens Windows Server 2008 R2 oder Windows 7
Quelle
Microsoft 365 Apps / Office Administrative Templates (Version 5568.1000)
Kategorie
Microsoft Excel 2016 › Verschiedenes

Registrierung

olapudfsecurity

REG_DWORDBenutzer
Wert bei Aktivierung
Hängt vom Wert der Option ab
Element
OLAP PivotTable-UDF-Sicherheitseinstellung
Optionen
EintragGespeicherter Wert
ALLE UDFs zulassen1
Nur sichere UDFs zulassen2
KEINE UDFs zulassen3
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\options]

; Optionen (nur eine verwenden)
; ALLE UDFs zulassen
"olapudfsecurity"=dword:00000001
; Nur sichere UDFs zulassen
"olapudfsecurity"=dword:00000002
; KEINE UDFs zulassen
"olapudfsecurity"=dword:00000003
CMD
:: Optionen (nur eine verwenden)

:: ALLE UDFs zulassen
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "olapudfsecurity" /t REG_DWORD /d 1 /f
:: Nur sichere UDFs zulassen
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "olapudfsecurity" /t REG_DWORD /d 2 /f
:: KEINE UDFs zulassen
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "olapudfsecurity" /t REG_DWORD /d 3 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Force | Out-Null

# Optionen (nur eine verwenden)
# ALLE UDFs zulassen
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'olapudfsecurity' -PropertyType DWord -Value 1 -Force | Out-Null
# Nur sichere UDFs zulassen
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'olapudfsecurity' -PropertyType DWord -Value 2 -Force | Out-Null
# KEINE UDFs zulassen
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'olapudfsecurity' -PropertyType DWord -Value 3 -Force | Out-Null