Années : valeur de Registre yearlabeldisplayUtilisateurHKCU\software\policies\microsoft\office\16.0\ms project\options\edit

ID de stratégie
L_PjYears
Étendue
Configuration utilisateur
Pris en charge sur
Au minimum Windows Server 2008 R2 ou Windows 7
Source
Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
Catégorie
Microsoft Project 2016 › Options Project › Modifier › Afficher les options pour les unités de temps de « Projet1 »

Registre

yearlabeldisplay

REG_DWORDUtilisateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Années
Options
EntréeValeur stockée
a0
an1
année2
3
4
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\ms project\options\edit]

; Options (en utiliser une seule)
; a
"yearlabeldisplay"=dword:00000000
; an
"yearlabeldisplay"=dword:00000001
; année
"yearlabeldisplay"=dword:00000002
; 
"yearlabeldisplay"=dword:00000003
; 
"yearlabeldisplay"=dword:00000004
CMD
:: Options (en utiliser une seule)

:: 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
:: année
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
# Commun : créer la clé
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\ms project\options\edit' -Force | Out-Null

# Options (en utiliser une seule)
# 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
# année
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