Deshabilitar Scripts de Office en Excel para escritorio de Windows: valor del Registro disableofficescriptsUsuarioHKCU\software\policies\microsoft\office\16.0\excel\options

Id. de directiva
L_ExcelDisableOfficeScripts
Ámbito
Configuración de usuario
Compatible con
Al menos Windows Server 2008 R2 o Windows 7
Origen
Microsoft 365 Apps / Office Administrative Templates (versión 5568.1000)
Categoría
Microsoft Excel 2016 › Varios

Registro

disableofficescripts

REG_DWORDUsuario
Valor al habilitar
1
Valor al deshabilitar
0
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opciones (usar solo una)
; Habilitada
"disableofficescripts"=dword:00000001
; Deshabilitada
"disableofficescripts"=dword:00000000
CMD
:: Opciones (usar solo una)

:: Habilitada
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "disableofficescripts" /t REG_DWORD /d 1 /f
:: Deshabilitada
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "disableofficescripts" /t REG_DWORD /d 0 /f
PowerShell
# Común: crear la clave
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Force | Out-Null

# Opciones (usar solo una)
# Habilitada
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'disableofficescripts' -PropertyType DWord -Value 1 -Force | Out-Null
# Deshabilitada
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'disableofficescripts' -PropertyType DWord -Value 0 -Force | Out-Null