Forum Discussion
Editing Lockscreen with Script via Registry
- Sep 10, 2020
Hi Schulzi
You will need to create a Registry Value in key HKLM\Software\Policies\Microsoft\Windows\Personalization called LockScreenImage with a value of pointing to the file you want to use for lockscreen
You can also do this via Group Policy Computer Configuration > Policies > Administrative Templates > Control Panel > Personalization > “Force a specific default lock screen image”
Hi Schulzi
Aside from the usual cavets with the machine being able to see the shared folder where the image resides, I'm not too sure what might have gone wrong. Does it work if you try it from the GPO, and if so is the reg key the same?
Hi HidMov
no, it does not work in GP aswell...
Path of the Picture is accessible for every User on the PC...(C:\install\Useful\Lockscreen.jpg)
I also tried putting it in "C:\Windows\Web\Screen" didn't work either
Greetings Schulzi
- HidMovSep 28, 2020Steel Contributor
Hi Schulzi
Sorry to hear you are having issues still. I've just spun up a test Win10 machine and manually added in the key and a downloaded a .jpg and it's set up the lockscreen to the picture after a gpupdate
The reg key is as shown:
The only thing I can recommend is to have a look through the event logs and see if there is any mention of the GPO being unable to apply and if it has an error. Have you also tried a different picture format/resolution/bit depth?
- SchulziSep 29, 2020Brass Contributor
Hi HidMov
so far I tried 2 or 3 different Images on 3 Different Ways:
Way 1: The Regkey:
Should be the right path...
Way 2: GPO
(in english: "Force a specific Lockscreenimage)
Way 3: Set it manually
(double click Image -> Settings -> Set As -> LockScreen)
=> That is the only way to get that image...
In the Eventlogs I got 3 Warnings and 2 Errors regarding Group Policies...
But these Errors potentially come from my try to Update the GP via CMD (Run CMD as Admin -> gpupdate /force), because I'm currently on an Admin Account, where Group Policies often fail to update...
If you got anymore Questions, feel free to ask
Greetings
Yannik Schulz