🐍 Python 3.10+
Check "Disable Fast Startup" Status (Python)
Reads the registry value behind the "Disable Fast Startup" tweak via winreg to confirm whether it's applied.
check_disable_fast_startup_status.py
#!/usr/bin/env python3
"""
check_disable_fast_startup_status.py
Checks whether "Disable Fast Startup" is currently applied.
Usage:
python check_disable_fast_startup_status.py
"""
import winreg
def main() -> None:
try:
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SYSTEM\CurrentControlSet\Control\Session Manager\Power")
value, _ = winreg.QueryValueEx(key, "HiberbootEnabled")
winreg.CloseKey(key)
print(f"Current value of 'HiberbootEnabled': {value}")
except FileNotFoundError:
print("'HiberbootEnabled' is not set (using the Windows default).")
if __name__ == "__main__":
main()