🐍 Python 3.10+

Disable First Logon Animation (Python)

Skips the "Hi, we are setting things up for you" first-logon animation (requires admin). Requires an elevated (Administrator) prompt. Applies the tweak via the stdlib winreg module.

By WindowsScripting.com · 680 B
set_disable_first_logon_animation.py
#!/usr/bin/env python3
"""
set_disable_first_logon_animation.py

Disable First Logon Animation.
Skips the "Hi, we are setting things up for you" first-logon animation (requires admin). Requires an elevated (Administrator) prompt.

Usage:
    python set_disable_first_logon_animation.py
"""

import winreg


def main() -> None:
    key = winreg.CreateKeyEx(
        winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", 0, winreg.KEY_SET_VALUE
    )
    winreg.SetValueEx(key, "EnableFirstLogonAnimation", 0, winreg.REG_DWORD, 0)
    winreg.CloseKey(key)
    print("Disable First Logon Animation applied.")


if __name__ == "__main__":
    main()