OLE 主動式內容 的登錄值 enableoleactions使用者HKCU\software\policies\microsoft\office\16.0\powerpoint\security

原則 ID
L_OLEActions
適用範圍
使用者設定
支援的作業系統
至少需要 Windows Server 2008 R2 或 Windows 7
來源
Microsoft 365 Apps / Office Administrative Templates (版本 5568.1000)
類別
Microsoft PowerPoint 2016 › PowerPoint 選項 › 安全性

登錄

enableoleactions

REG_DWORD使用者
啟用時的值
取決於選項值
元素
-
選項
項目儲存的值
停用 (不允許啟用 OLE 主動式內容)0
啟用 (啟用 OLE 主動式內容之前提示使用者)1
全部啟用 (允許在不提示的情況下啟用 OLE 主動式內容)2
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\powerpoint\security]

; 選項 (只使用其中一個)
; 停用 (不允許啟用 OLE 主動式內容)
"enableoleactions"=dword:00000000
; 啟用 (啟用 OLE 主動式內容之前提示使用者)
"enableoleactions"=dword:00000001
; 全部啟用 (允許在不提示的情況下啟用 OLE 主動式內容)
"enableoleactions"=dword:00000002
CMD
:: 選項 (只使用其中一個)

:: 停用 (不允許啟用 OLE 主動式內容)
reg add "HKCU\software\policies\microsoft\office\16.0\powerpoint\security" /v "enableoleactions" /t REG_DWORD /d 0 /f
:: 啟用 (啟用 OLE 主動式內容之前提示使用者)
reg add "HKCU\software\policies\microsoft\office\16.0\powerpoint\security" /v "enableoleactions" /t REG_DWORD /d 1 /f
:: 全部啟用 (允許在不提示的情況下啟用 OLE 主動式內容)
reg add "HKCU\software\policies\microsoft\office\16.0\powerpoint\security" /v "enableoleactions" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\security' -Force | Out-Null

# 選項 (只使用其中一個)
# 停用 (不允許啟用 OLE 主動式內容)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\security' -Name 'enableoleactions' -PropertyType DWord -Value 0 -Force | Out-Null
# 啟用 (啟用 OLE 主動式內容之前提示使用者)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\security' -Name 'enableoleactions' -PropertyType DWord -Value 1 -Force | Out-Null
# 全部啟用 (允許在不提示的情況下啟用 OLE 主動式內容)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\security' -Name 'enableoleactions' -PropertyType DWord -Value 2 -Force | Out-Null