Skip to content
This repository has been archived by the owner on Feb 6, 2021. It is now read-only.

A simple lock screen changer for Windows 10 that bypasses my school's restrictions.

Notifications You must be signed in to change notification settings

toydotgames-archive/LockScreenChanger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lock Screen Changer

Introduction

I believe there's two registry keys that organisations can enforce on their domain's computers, where the user is unable to change the lock screen image in Windows 10 and the image is set to a predefined one - each of these events is a key respectively.

Another problem solvable by switching to Arch, btw!

Anyway, the way the predefined image is set is by placing it in the C:\Program Files\images\ directory. Usually the default is 1.jpg in there; but it may change due to an event. National Recycling Week happened and that's what spurred me to create this automated application to automate the process I'd been already doing manually. The National Recycling Week lock screen image was put in C:\Program Files\images\ too, and its name was 7.jpg. See the Compatible Filetypes table in the Using section to see what we support.

I've made this project Open Source / Source-avaliable on GitHub here in case anyone else is interested or they suffer a similar limitation from their IT team.

How it Works

The program asks you for two things: The old lock screen image (In my case, 1.jpg or 7.jpg); and the filename of the image to replace the lock screen with.

The image to replace the lock screen with should be in the same directory as the compiled JAR.

It then creates a Batch script because I'm more comfortable with Batch for filesystem interactions. (Java I find better for everything else!) It runs the Batch file afterwards, and does all of the file replacing. Wonderful! The lock screen should stay in the new state until a domain policy update and/or a system drain.

Using

Running Directly From Source

No dependencies. (Except Java!)

  1. Clone the project:
    GitHub CLI:
gh repo clone Toydotgame/LockScreenChanger

Git:

git clone https://github.com/Toydotgame/LockScreenChanger
  1. Navigate to the project directory:
cd LockScreenChanger
  1. Run GUI.java using Java:
java src/GUI.java

Running From a Pre-compiled .JAR

From the Releases Tab

  1. Download the latest .jar file.
  2. Move the file to the location of a .jpg file you'd like to set as your lock screen. (In the same folder)
  3. Run the .jar.
  4. Enter the file information:

    a) The name of the new background you want. (Make sure it's a .jpg file!)
    b) The JPEG filename of the image in C:\Program Files\images\. (In my school's case: 1.jpg or 7.jpg.)

Compatible Filetypes

Name Extension
PNG .png
JPEG .jpg, .jpeg or .jfif
Bitmap .bmp
TIFF .tif or .tiff

Help

  • It says Command Prompt has been disabled by your administrator... after I press Apply!
    • See issue #2.
  • I get a "Windows cannot find "run.bat"." error.
    • This means you've put the JARfile in an admin-protected folder. Move it to one that is not. (e.g: Don't put it in C:\Program Files\, C:\Windows\, or C:\ProgramData\)
    • This problem is addressed in issue #1.

If you have a different problem; please open a new issue in the Issues tab.

Planned Features: (Not certain that they'll be in the app, though!)

  • Command-line launch arguments
    • Either with:
      • A seperate version without a GUI which does it straight away; or
      • The current version accepting flags and then running without the GUI and automatically proceeding
  • Replace Windows Batch Script with in-built Java file operations.
    • This is due to some computers having very broken Command Prompts on our network. Hopefully, reducing dependence on Windows and moving everything to my Java application should make it more future-proof.