設定表單區域權限 的登錄值 disableformregions使用者HKCU\software\policies\microsoft\office\16.0\outlook\addins
- 原則 ID
- L_Disableformregions
- 適用範圍
- 使用者設定
- 支援的作業系統
- 至少需要 Windows Server 2008 R2 或 Windows 7
- 來源
- Microsoft 365 Apps / Office Administrative Templates (版本 5568.1000)
- 類別
- Microsoft Outlook 2016 › 表單區域設定
登錄
disableformregions
REG_DWORD使用者- 啟用時的值
- 取決於選項值
- 元素
- 設定表單區域權限:
| 項目 | 儲存的值 |
|---|---|
| 允許執行所有表單區域 | 0 |
| 只允許 HKLM 中登錄的項目 | 1 |
| 不允許執行任何表單區域 | 2 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\addins] ; 選項 (只使用其中一個) ; 允許執行所有表單區域 "disableformregions"=dword:00000000 ; 只允許 HKLM 中登錄的項目 "disableformregions"=dword:00000001 ; 不允許執行任何表單區域 "disableformregions"=dword:00000002
CMD
:: 選項 (只使用其中一個) :: 允許執行所有表單區域 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\addins" /v "disableformregions" /t REG_DWORD /d 0 /f :: 只允許 HKLM 中登錄的項目 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\addins" /v "disableformregions" /t REG_DWORD /d 1 /f :: 不允許執行任何表單區域 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\addins" /v "disableformregions" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\addins' -Force | Out-Null # 選項 (只使用其中一個) # 允許執行所有表單區域 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\addins' -Name 'disableformregions' -PropertyType DWord -Value 0 -Force | Out-Null # 只允許 HKLM 中登錄的項目 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\addins' -Name 'disableformregions' -PropertyType DWord -Value 1 -Force | Out-Null # 不允許執行任何表單區域 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\addins' -Name 'disableformregions' -PropertyType DWord -Value 2 -Force | Out-Null