Script to change Windows 10 Lockscreen (Post Anniversary Update 1607)

Posted on Posted in Don't Feed the Technician

This is a quick post on how to change the default lock screen in windows 10 for ALL users.


The following script will assign all the permissions for current logged on user, you could do this by hand but it will take a lot of time to first take ownership then to assign permissions… best to run the script because you will inevitably need access again, or to make a script to change the image every logon…


takeown /F C:\ProgramData\Microsoft\Windows\SystemData
icacls C:\ProgramData\Microsoft\Windows\SystemData /grant:r %UserName%:F
icacls C:\ProgramData\Microsoft\Windows\SystemData /grant:r Administrators:F
icacls C:\ProgramData\Microsoft\Windows\SystemData /setowner Administrators

takeown /F C:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18 /R /D Y
icacls C:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18 /grant:r %UserName%:(OI)(CI)F
icacls C:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18 /grant:r Administrators:(OI)(CI)F
icacls C:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18 /grant:r SYSTEM:(OI)(CI)F
icacls C:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18\* /inheritance:e /T
icacls C:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18 /setowner Administrators /T




This will grant you access to the S-1-5-18 folder, but this is only temporary, windows really doesn’t want you to have access to this folder and will reset all your permissions changes in around 20 minutes or so.

Once you run the script head over to C:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18. You will find a folder called LockScreen_Z, and inside you will have see the windows default beach cave image. Simply replace this image with another of the same name and ideally same image dimensions 1920×1080.


Now log off/on and BINGO.


Leave a Reply

Your email address will not be published. Required fields are marked *