jpreece6 / LogonChanger

Logon changer service for Windows 10. Replaces the logon background with a custom image pulled from disk or bing.
MIT License
0 stars 1 forks source link

Breaks on Windows 10 post 2016 anniversary update #3

Open jpreece6 opened 8 years ago

jpreece6 commented 8 years ago
jpreece6 commented 8 years ago

After some investigation I've found that the background image is no longer managed by the Windows.Ui.Logon.pri file.

Storage Directory

As of the anniversary update logon backgrounds are now stored in: "C:\ProgramData\Microsoft\Windows\SystemData\"

Note you need to take ownership of the folder to access it.

Storage Format

System provided backgrounds are located in SystemData\S-1-5-18\ReadOnly\LockScreen_X Custom images selected via "browse" are located in SystemData\S-1-5-21......\ReadOnly\LockScreen_A

Windows names system backgrounds from Z upwards e.g. LockScreen_Z .... LockScreen_Y (Stops at ?) Custom images are named in the opposite fashion e.g. LockScreen_A .... LockScreen_B (Stops at G)

Data stored about custom images is stored in the registry at: HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen

Additional Info

Windows stores a copy of the original image named "LockScreen". Windows also modifies this image to match the resolution of the screen and the thumbnail size of the preview shown in settings. These modified copies are named to match their resolution e.g. "LockScreen_01080108" or "LockScreen1024_0768".

So far I've only noticed Windows to use the "LockScreen___1024_0768_notdimmed" version of these files on the lock screen.

Configuration

Windows uses the following key to determine which image to display on the lock screen:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SystemProtectedUserData\S-1-5-21\LockScreen\Default

The "Default" key stores the letters of each image in order of display "ABCDEFG"... first letter is the letter used.

Note to modify the default key the owner needs to be changed to match the current user (admin) and add the user to permissions of that key.

Ideas

TODO