OLAP PivotTable User Defined Function (UDF) security setting: kayıt defteri değeri olapudfsecurityKullanıcıHKCU\software\policies\microsoft\office\16.0\excel\options

Bu dilde resmi metin yok (İngilizce özgün metin gösteriliyor)

İlke Kimliği
L_OLAPPivotTableUserDefinedFunctionUDFsecuritysetting
Kapsam
Kullanıcı Yapılandırması
Desteklenen işletim sistemleri
En az Windows Server 2008 R2 veya Windows 7
Kaynak
Microsoft 365 Apps / Office Administrative Templates (sürüm 5568.1000)
Kategori
Microsoft Excel 2016 › Miscellaneous

Kayıt defteri

olapudfsecurity

REG_DWORDKullanıcı
Etkin değeri
Seçenek değerine bağlıdır
Öğe
OLAP PivotTable User Defined Function (UDF) security setting
Seçenekler
MaddeSaklanan değer
Allow ALL UDFs1
Allow safe UDFs only2
Allow NO UDFs3
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00

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

; Seçenekler (yalnızca birini kullanın)
; Allow ALL UDFs
"olapudfsecurity"=dword:00000001
; Allow safe UDFs only
"olapudfsecurity"=dword:00000002
; Allow NO UDFs
"olapudfsecurity"=dword:00000003
CMD
:: Seçenekler (yalnızca birini kullanın)

:: Allow ALL UDFs
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "olapudfsecurity" /t REG_DWORD /d 1 /f
:: Allow safe UDFs only
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "olapudfsecurity" /t REG_DWORD /d 2 /f
:: Allow NO UDFs
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "olapudfsecurity" /t REG_DWORD /d 3 /f
PowerShell
# Ortak: anahtarı oluştur
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Force | Out-Null

# Seçenekler (yalnızca birini kullanın)
# Allow ALL UDFs
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'olapudfsecurity' -PropertyType DWord -Value 1 -Force | Out-Null
# Allow safe UDFs only
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'olapudfsecurity' -PropertyType DWord -Value 2 -Force | Out-Null
# Allow NO UDFs
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'olapudfsecurity' -PropertyType DWord -Value 3 -Force | Out-Null