🐍 Python 3.10+

Disable News and Interests Feed (Python)

Hides the taskbar News and Interests / Widgets feed. Applies the tweak via the stdlib winreg module.

By WindowsScripting.com · 586 B
set_disable_news_and_interests.py
#!/usr/bin/env python3
"""
set_disable_news_and_interests.py

Disable News and Interests Feed.
Hides the taskbar News and Interests / Widgets feed.

Usage:
    python set_disable_news_and_interests.py
"""

import winreg


def main() -> None:
    key = winreg.CreateKeyEx(
        winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Feeds", 0, winreg.KEY_SET_VALUE
    )
    winreg.SetValueEx(key, "ShellFeedsTaskbarViewMode", 0, winreg.REG_DWORD, 2)
    winreg.CloseKey(key)
    print("Disable News and Interests Feed applied.")


if __name__ == "__main__":
    main()