Perform file validation on pivot caches: registry value pivotoptionsUserHKCU\software\policies\microsoft\office\16.0\excel\security\filevalidation

Policy ID
L_PerformFileValidationOnPivotCaches
Scope
User Configuration
Supported on
At least Windows Server 2008 R2 or Windows 7
Source
Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
Category
Microsoft Excel 2016 › Excel Options › Security

Registry

pivotoptions

REG_DWORDUser
Enabled value
Depends on the option value
Element
-
Options
ItemStored value
No file validation0
Web and email sources1
Always perform validation2
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\security\filevalidation]

; Options (use only one)
; No file validation
"pivotoptions"=dword:00000000
; Web and email sources
"pivotoptions"=dword:00000001
; Always perform validation
"pivotoptions"=dword:00000002
CMD
:: Options (use only one)

:: No file validation
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\filevalidation" /v "pivotoptions" /t REG_DWORD /d 0 /f
:: Web and email sources
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\filevalidation" /v "pivotoptions" /t REG_DWORD /d 1 /f
:: Always perform validation
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\filevalidation" /v "pivotoptions" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\filevalidation' -Force | Out-Null

# Options (use only one)
# No file validation
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\filevalidation' -Name 'pivotoptions' -PropertyType DWord -Value 0 -Force | Out-Null
# Web and email sources
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\filevalidation' -Name 'pivotoptions' -PropertyType DWord -Value 1 -Force | Out-Null
# Always perform validation
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\filevalidation' -Name 'pivotoptions' -PropertyType DWord -Value 2 -Force | Out-Null