Force a specific default lock screen and logon image
Forcer une image de l’écran de verrouillage et d’ouverture de session par défaut spécifique
Explanation
This setting allows you to force a specific default lock screen and logon image by entering the path (location) of the image file. The same image will be used for both the lock and logon screens.
This setting lets you specify the default lock screen and logon image shown when no user is signed in, and also sets the specified image as the default for all users (it replaces the inbox default image).
To use this setting, type the fully qualified path and name of the file that stores the default lock screen and logon image. You can type a local path, such as C:\Windows\Web\Screen\img104.jpg or a UNC path, such as \\Server\Share\Corp.jpg.
This can be used in conjunction with the "Prevent changing lock screen and logon image" setting to always force the specified lock screen and logon image to be shown.
Note: This setting only applies to Enterprise, Education, and Server SKUs.
Ce paramètre vous permet de forcer une image de l’écran de verrouillage et d’ouverture de session par défaut spécifique en indiquant le chemin d’accès (emplacement) du fichier image. Cette même image sert à l’écran de verrouillage et à l’écran d’ouverture de session.
Ce paramètre permet de spécifier l’image de l’écran de verrouillage et d’ouverture de session par défaut qui s’affiche si aucun utilisateur n’est connecté. Il définit également l’image spécifiée comme image par défaut pour tous les utilisateurs (elle remplace alors l’image de boîte de réception par défaut).
Pour utiliser ce paramètre, entrez le chemin d’accès complet et le nom du fichier contenant l’image de l’écran de verrouillage et d’ouverture de session par défaut. Vous pouvez taper un chemin d’accès local, tel que C:\Windows\Web\Screen\img104.jpg ou un chemin d’accès UNC, tel que \\Serveur\Partage\Corp.jpg.
Ce paramètre peut être utilisé avec le paramètre « Empêcher la modification de l’image de l’écran de verrouillage et d’ouverture de session » pour toujours forcer l’affichage de l’image de l’écran de verrouillage et d’ouverture de session spécifiée.
Remarque : ce paramètre s’applique uniquement aux références (SKU) Enterprise, Education et Server.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Personalization- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: ControlPanelDisplay/CPL_Personalization_ForceDefaultLockScreen
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Personalization'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Path to lock screen image
Set-ItemProperty -Path $k -Name 'LockScreenImage' -Value '<value>' -Type String
# Turn off fun facts, tips, tricks, and more on lock screen
# value not defined in the ADMX (the GPO editor usually writes 1/0)
# 1 = checked, 0 = unchecked; default state taken from the ADML
Set-ItemProperty -Path $k -Name 'LockScreenOverlaysDisabled' -Value 1 -Type DWordDisable
# Disable: ControlPanelDisplay/CPL_Personalization_ForceDefaultLockScreen
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": ControlPanelDisplay/CPL_Personalization_ForceDefaultLockScreen
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Personalization'
Remove-ItemProperty -Path $k -Name 'LockScreenImage' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'LockScreenOverlaysDisabled' -ErrorAction SilentlyContinueOptions (2)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Path to lock screen image:Chemin d’accès de l’image de l’écran de verrouillage :LockScreenImage | Text boxtext | LockScreenImage | REG_SZ | Required |
| Turn off fun facts, tips, tricks, and more on lock screenDésactiver les faits fantaisistes, conseils, astuces et plus encore sur l'écran de verrouillageLockScreenOverlaysDisabled | Check boxboolean | LockScreenOverlaysDisabled | REG_DWORD | Checked: implicit: 1Unchecked: implicit: 0 |