預設 Office 佈景主題 的登錄值 default ui theme (HKLM common)電腦HKLM\software\policies\microsoft\office\16.0\common
- 原則 ID
- L_DefaultUIThemeMachine
- 適用範圍
- 電腦設定
- 支援的作業系統
- 至少需要 Windows Server 2008 R2 或 Windows 7
- 來源
- Microsoft 365 Apps / Office Administrative Templates (版本 5568.1000)
- 類別
- Microsoft Office 2016 (電腦) › 全域選項 › 自訂
登錄
default ui theme
REG_DWORD電腦- 啟用時的值
- 取決於選項值
- 元素
- 佈景主題:
| 項目 | 儲存的值 |
|---|---|
| 彩色 | 0 |
| 深灰 | 3 |
| 黑色 | 4 |
| 白色 | 5 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\software\policies\microsoft\office\16.0\common] ; 選項 (只使用其中一個) ; 彩色 "default ui theme"=dword:00000000 ; 深灰 "default ui theme"=dword:00000003 ; 黑色 "default ui theme"=dword:00000004 ; 白色 "default ui theme"=dword:00000005
CMD
:: 選項 (只使用其中一個) :: 彩色 reg add "HKLM\software\policies\microsoft\office\16.0\common" /v "default ui theme" /t REG_DWORD /d 0 /f :: 深灰 reg add "HKLM\software\policies\microsoft\office\16.0\common" /v "default ui theme" /t REG_DWORD /d 3 /f :: 黑色 reg add "HKLM\software\policies\microsoft\office\16.0\common" /v "default ui theme" /t REG_DWORD /d 4 /f :: 白色 reg add "HKLM\software\policies\microsoft\office\16.0\common" /v "default ui theme" /t REG_DWORD /d 5 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\software\policies\microsoft\office\16.0\common' -Force | Out-Null # 選項 (只使用其中一個) # 彩色 New-ItemProperty -Path 'HKLM:\software\policies\microsoft\office\16.0\common' -Name 'default ui theme' -PropertyType DWord -Value 0 -Force | Out-Null # 深灰 New-ItemProperty -Path 'HKLM:\software\policies\microsoft\office\16.0\common' -Name 'default ui theme' -PropertyType DWord -Value 3 -Force | Out-Null # 黑色 New-ItemProperty -Path 'HKLM:\software\policies\microsoft\office\16.0\common' -Name 'default ui theme' -PropertyType DWord -Value 4 -Force | Out-Null # 白色 New-ItemProperty -Path 'HKLM:\software\policies\microsoft\office\16.0\common' -Name 'default ui theme' -PropertyType DWord -Value 5 -Force | Out-Null