Anos: valor do Registro yearlabeldisplayUsuárioHKCU\software\policies\microsoft\office\16.0\ms project\options\edit
- ID da política
- L_PjYears
- Escopo
- Configuração do Usuário
- Compatível com
- Windows Server 2008 R2 ou Windows 7
- Fonte
- Microsoft 365 Apps / Office Administrative Templates (versão 5568.1000)
- Categoria
- Microsoft Project 2016 › Opções do Project › Editar › Opções de exibição para unidades de tempo em 'Projeto1'
Registro
yearlabeldisplay
REG_DWORDUsuário- Valor habilitado
- Depende do valor da opção
- Elemento
- Anos
| Item | Valor armazenado |
|---|---|
| a | 0 |
| an | 1 |
| ano | 2 |
| 3 | |
| 4 |
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\ms project\options\edit] ; Opções (use apenas uma) ; a "yearlabeldisplay"=dword:00000000 ; an "yearlabeldisplay"=dword:00000001 ; ano "yearlabeldisplay"=dword:00000002 ; "yearlabeldisplay"=dword:00000003 ; "yearlabeldisplay"=dword:00000004
CMD
:: Opções (use apenas uma) :: a reg add "HKCU\software\policies\microsoft\office\16.0\ms project\options\edit" /v "yearlabeldisplay" /t REG_DWORD /d 0 /f :: an reg add "HKCU\software\policies\microsoft\office\16.0\ms project\options\edit" /v "yearlabeldisplay" /t REG_DWORD /d 1 /f :: ano 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
# Comum: criar a chave New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\edit' -Force | Out-Null # Opções (use apenas uma) # a New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\edit' -Name 'yearlabeldisplay' -PropertyType DWord -Value 0 -Force | Out-Null # an New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\edit' -Name 'yearlabeldisplay' -PropertyType DWord -Value 1 -Force | Out-Null # ano 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