🐍 Python 3.10+
Check "Disable Taskbar Widgets Icon" Status (Python)
Reads the registry value behind the "Disable Taskbar Widgets Icon" tweak via winreg to confirm whether it's applied.
check_disable_taskbar_widgets_status.py
#!/usr/bin/env python3
"""
check_disable_taskbar_widgets_status.py
Checks whether "Disable Taskbar Widgets Icon" is currently applied.
Usage:
python check_disable_taskbar_widgets_status.py
"""
import winreg
def main() -> None:
try:
key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced")
value, _ = winreg.QueryValueEx(key, "TaskbarDa")
winreg.CloseKey(key)
print(f"Current value of 'TaskbarDa': {value}")
except FileNotFoundError:
print("'TaskbarDa' is not set (using the Windows default).")
if __name__ == "__main__":
main()