Skip to main content

Build PyPI version

Remove Windows lock screen ads/Spotlight Ads

Remove Windows lock screen ads/Spotlight ads while keeping the rotating Spotlight image backgrounds. The effect is immediate, there is no restart or logoff required.

This script can be run by any user, no Administrator privileges are required.

This script parses the JSON configuration for Spotlight, located in %LOCALAPPDATA%, to remove the buzzfeed-esque ads that clutter the lock screen.

By default the image credits are kept. Pass --remove-credits if you would like them removed, too.

Installation

If you have Python installed

python -m pip install --user RemoveWindowsLockScreenAds
pythonw -m RemoveWindowsLockScreenAds --install

If you don't want to install Python, download the standalone installer, press WindowsKey+r, then paste and run

%USERPROFILE%\Downloads\RemoveWindowsLockScreenAds.noconsole.exe --install

When run with pythonw or RemoveWindowsLockScreenAds.noconsole.exe there is no console output. However, --install and --uninstall will log to %TEMP%\RemoveWindowsLockScreenAds.install.log.

You can enable and disable RemoveWindowsLockScreenAds from the Startup tab in Windows Task Manager.

Try it out without modifying anything

Python

python -m RemoveWindowsLockScreenAds --once --dry-run --verbose

Standalone console program

RemoveWindowsLockScreenAds.console.exe --once --dry-run --verbose

Detailed Usage

usage: RemoveWindowsLockScreenAds.py [-h] [-v] [--dry-run] [--remove-credits] (--once | --watch | --install | --uninstall) [path]

positional arguments:
  path              Path to file or directory to remove lock screen ads from.

optional arguments:
  -h, --help        show this help message and exit
  -v, --verbose     Enable verbose logging
  --dry-run         Process and log but do not modify files
  --remove-credits  Remove the image credits box

actions:
  --once            Remove ads from file(s) in path
  --watch           Continue running, watch directory for new Spotlight files, and remove ads from them
  --install         Start in --watch mode on login
  --uninstall       Remove installed files and login task

Metadata

Release files for RemoveWindowsLockScreenAds 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RemoveWindowsLockScreenAds 0.5.1
File Size Uploaded
RemoveWindowsLockScreenAds-0.5.1.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for RemoveWindowsLockScreenAds 0.5.1
File Interpreter ABI Platform
RemoveWindowsLockScreenAds-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / RemoveWindowsLockScreenAds-0.5.1.tar.gz

Download URL RemoveWindowsLockScreenAds-0.5.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
db93ac9ad8a998e5d1240c1f663478929adf316224f9060d1dd8ccd0c89d5301
BLAKE2b-256 checksum
How to use checksums
4426d27eb2cee73e78943139d32335e0b18aa219fc796d72f5f5cd692c63d8da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / RemoveWindowsLockScreenAds-0.5.1-py3-none-any.whl

Download URL RemoveWindowsLockScreenAds-0.5.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8be4d947d2e937648333d8297ea98d805cde3e7f042c5a20d1953988713e74e9
BLAKE2b-256 checksum
How to use checksums
ba3e03fefa498075e24ace568676e6cd53243fd46db4f213b89e0534233676d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.5.0

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page