年 的登錄值 yearlabeldisplay使用者HKCU\software\policies\microsoft\office\16.0\ms project\options\edit
- 原則 ID
- L_PjYears
- 適用範圍
- 使用者設定
- 支援的作業系統
- 至少需要 Windows Server 2008 R2 或 Windows 7
- 來源
- Microsoft 365 Apps / Office Administrative Templates (版本 5568.1000)
- 類別
- Microsoft Project 2016 › Project 選項 › 編輯 › '專案1' 的時間顯示選項
登錄
yearlabeldisplay
REG_DWORD使用者- 啟用時的值
- 取決於選項值
- 元素
- 年
| 項目 | 儲存的值 |
|---|---|
| y | 0 |
| yr | 1 |
| year | 2 |
| 3 | |
| 4 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\ms project\options\edit] ; 選項 (只使用其中一個) ; y "yearlabeldisplay"=dword:00000000 ; yr "yearlabeldisplay"=dword:00000001 ; year "yearlabeldisplay"=dword:00000002 ; "yearlabeldisplay"=dword:00000003 ; "yearlabeldisplay"=dword:00000004
CMD
:: 選項 (只使用其中一個) :: y reg add "HKCU\software\policies\microsoft\office\16.0\ms project\options\edit" /v "yearlabeldisplay" /t REG_DWORD /d 0 /f :: yr reg add "HKCU\software\policies\microsoft\office\16.0\ms project\options\edit" /v "yearlabeldisplay" /t REG_DWORD /d 1 /f :: year reg add "HKCU\software\policies\microsoft\office\16.0\ms project\options\edit" /v "yearlabeldisplay" /t REG_DWORD /d 2 /f :: reg add "HKCU\software\policies\microsoft\office\16.0\ms project\options\edit" /v "yearlabeldisplay" /t REG_DWORD /d 3 /f :: reg add "HKCU\software\policies\microsoft\office\16.0\ms project\options\edit" /v "yearlabeldisplay" /t REG_DWORD /d 4 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\edit' -Force | Out-Null # 選項 (只使用其中一個) # y New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\edit' -Name 'yearlabeldisplay' -PropertyType DWord -Value 0 -Force | Out-Null # yr New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\edit' -Name 'yearlabeldisplay' -PropertyType DWord -Value 1 -Force | Out-Null # year New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\edit' -Name 'yearlabeldisplay' -PropertyType DWord -Value 2 -Force | Out-Null # New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\edit' -Name 'yearlabeldisplay' -PropertyType DWord -Value 3 -Force | Out-Null # New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\edit' -Name 'yearlabeldisplay' -PropertyType DWord -Value 4 -Force | Out-Null