9 Commits

3 changed files with 7 additions and 11 deletions
Split View
  1. +2
    -0
      README.md
  2. BIN
      data/banner.png
  3. +5
    -11
      lockscreen-img.bat

+ 2
- 0
README.md View File

@ -1,6 +1,8 @@
# lockscreen-img
Script for changing the lock screen wallpaper on Windows 10 AME.
![lockscreen-img Screenshot](data/banner.png)
## Usage
You can download the script by going to the [latest release](https://git.ameliorated.info/LoganDark/lockscreen-img/releases/latest) and downloading `lockscreen-img.bat` from the Downloads section.


BIN
data/banner.png View File

Before After
Width: 813  |  Height: 478  |  Size: 144 KiB

+ 5
- 11
lockscreen-img.bat View File

@ -95,17 +95,11 @@ copy "%IMAGE%" "%WINDIR%\Web\Screen\img103.png" /y >nul
copy "%IMAGE%" "%WINDIR%\Web\Wallpaper\Windows\img0.jpg" /y >nul
rem Clear cache
takeown /f "%PROGRAMDATA%\Microsoft\Windows\SystemData" >nul
icacls "%PROGRAMDATA%\Microsoft\Windows\SystemData" /reset >nul
takeown /f "%PROGRAMDATA%\Microsoft\Windows\SystemData\S-1-5-18" >nul
icacls "%PROGRAMDATA%\Microsoft\Windows\SystemData\S-1-5-18" /reset >nul
takeown /f "%PROGRAMDATA%\Microsoft\Windows\SystemData\S-1-5-18\ReadOnly" >nul
icacls "%PROGRAMDATA%\Microsoft\Windows\SystemData\S-1-5-18\ReadOnly" /reset >nul
takeown /f "%PROGRAMDATA%\Microsoft\Windows\SystemData\S-1-5-18\ReadOnly\LockScreen_Z" >nul
icacls "%PROGRAMDATA%\Microsoft\Windows\SystemData\S-1-5-18\ReadOnly\LockScreen_Z" /reset >nul
takeown /f "%PROGRAMDATA%\Microsoft\Windows\SystemData\S-1-5-18\ReadOnly\LockScreen_Z\*" >nul
icacls "%PROGRAMDATA%\Microsoft\Windows\SystemData\S-1-5-18\ReadOnly\LockScreen_Z\*" /reset >nul
del /q /f "%PROGRAMDATA%\Microsoft\Windows\SystemData\S-1-5-18\ReadOnly\LockScreen_Z\*" >nul
takeown /r /d Y /f "%PROGRAMDATA%\Microsoft\Windows\SystemData" >nul
icacls "%PROGRAMDATA%\Microsoft\Windows\SystemData" /reset /t >nul
for /d %%x in ("%PROGRAMDATA%\Microsoft\Windows\SystemData\*") do (
for /d %%y in ("%%x\ReadOnly\LockScreen_*") do rd /s /q "%%y"
)
cls
echo :: Windows 10 AME Lockscreen Wallpaper Changer


Loading…
Cancel
Save