Skip to content

πŸš€ Automatically log into Windows 10/11 without password prompts. Disable Windows Hello PIN and password requirements on boot & wake. Bring back the Windows 7 experience! ⚑

License

Notifications You must be signed in to change notification settings

ElScelt/Windows-AutoLogin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Windows AutoLogin - Password-Free Boot & Wake

License: MIT PowerShell Windows Stars

Bring back the Windows 7 experience! Automatically log into your Windows 10/11 PC without entering a password - no more PIN prompts, no more password screens on boot or wake from sleep. Just like the good old days! 🎯

Created by ElScelt πŸ’»


✨ Features

  • βœ… Automatic Login on Boot - No password required when starting your PC
  • βœ… Instant Wake from Sleep - No password prompt when resuming from sleep/hibernate
  • βœ… Disables Windows Hello PIN - Removes PIN requirement for Microsoft accounts
  • βœ… One-Click Setup - Just run the script and enter your password once
  • βœ… Easy Password Updates - Rerun the script anytime you change your Microsoft password
  • βœ… Works on Fresh Installs - Compatible with brand new Windows installations
  • βœ… Safe & Reversible - All changes can be undone through Windows Settings

πŸ“‹ Requirements

  • Windows 10 or Windows 11 (any edition)
  • PowerShell 5.1 or higher (pre-installed on Windows)
  • Administrator privileges (required for registry modifications)
  • Microsoft account or Local account with password

πŸš€ Quick Start

Step 1: Download the Script

Clone this repository or download the script directly:

git clone https://github.com/ElScelt/Windows-AutoLogin.git
cd Windows-AutoLogin

Or download the ZIP file and extract it.

Step 2: Run as Administrator

  1. Right-click on PowerShell (or Windows Terminal)
  2. Select "Run as Administrator"
  3. Navigate to the script folder:
    cd "C:\path\to\Windows-AutoLogin"

Step 3: Execute the Script

Run the script with bypass execution policy:

.\windows_autologin_setup.ps1

Step 4: Enter Your Password

When prompted, enter your Microsoft account password (NOT your PIN!)

The script will automatically configure all necessary settings.

Step 5: Restart

Choose Y when asked to restart, or restart manually later.

That's it! Your PC will now log in automatically. πŸŽ‰


πŸ”„ Updating Your Password

Changed your Microsoft account password? No problem! Just run the script again:

  1. Open PowerShell as Administrator
  2. Run .\windows_autologin_setup.ps1
  3. Enter your new password
  4. Restart your PC

The script will update all stored credentials automatically.


πŸ› οΈ What Does This Script Do?

The script modifies several Windows registry keys to achieve password-free login:

Configuration Steps:

  1. Disables Windows Hello Requirements

    • Removes PIN sign-in enforcement
    • Disables biometric requirements
    • Disables convenience PIN
  2. Enables Automatic Login

    • Sets AutoAdminLogon to enabled
    • Stores your username and password securely in registry
    • Configures automatic sign-in on boot
  3. Removes Password Requirement

    • Modifies DevicePasswordLessBuildVersion registry key
    • Enables the hidden netplwiz checkbox functionality
  4. Disables Wake Password (AC Power)

    • Removes password prompt when waking from sleep while plugged in
    • Modifies power management settings
  5. Disables Wake Password (Battery)

    • Removes password prompt when waking from sleep on battery
    • Ensures consistent behavior across power states
  6. Sets Inactivity Timeout

    • Disables automatic lock after inactivity
    • Prevents password prompts during extended idle periods
  7. Applies Compatibility Fixes

    • Disables dynamic lock
    • Disables lock screen
    • Ensures smooth operation across Windows versions

⚠️ Security Considerations

IMPORTANT: This script stores your password in the Windows registry in plain text. This is how Windows AutoLogin functionality works by design.

Use This Script Only If:

  • βœ… Your PC is in a physically secure location (home, private office)
  • βœ… No unauthorized persons have access to your computer
  • βœ… You understand the security implications
  • βœ… You prioritize convenience over maximum security

Do NOT Use This If:

  • ❌ Your PC is in a public place (coffee shop, library, shared workspace)
  • ❌ Multiple people have physical access to your device
  • ❌ Your PC contains highly sensitive data (business secrets, financial info)
  • ❌ Your organization has security policies against auto-login

Remember: Physical access to a computer often means complete access, regardless of this script. Use disk encryption (BitLocker) for sensitive data protection.


πŸ”™ How to Reverse / Undo

Want to go back to requiring a password? You have two options:

Option 1: Using Windows Settings (Recommended)

  1. Press Win + R, type netplwiz, press Enter
  2. Check the box: "Users must enter a user name and password to use this computer"
  3. Click Apply and OK
  4. Go to Settings > Accounts > Sign-in options
  5. Under "Require sign-in", select "When PC wakes up from sleep"

Option 2: Using Registry Editor

  1. Press Win + R, type regedit, press Enter
  2. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  3. Change AutoAdminLogon value to 0
  4. Delete DefaultPassword entry
  5. Restart your PC

πŸ› Troubleshooting

Script won't run / Execution Policy Error

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

"Access Denied" Error

Make sure you're running PowerShell as Administrator (right-click β†’ Run as Administrator)

Still Asks for Password After Running

  1. Verify you entered the correct password
  2. Restart your PC (changes require a restart to take effect)
  3. Check if any Group Policy is overriding the settings

Works on Boot but Not on Wake

Re-run the script - some power management settings may need reapplication.


πŸ’‘ Pro Tips

  • Combine with BitLocker: Enable disk encryption for physical security while keeping auto-login convenience
  • Use Strong Password: Even though it's stored in registry, maintain a strong Microsoft account password
  • Regular Updates: Rerun the script after major Windows updates if auto-login stops working
  • Multiple Users: This script works per-user; you can configure auto-login for any user account

πŸ“ Technical Details

Modified Registry Keys:

HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
β”œβ”€β”€ AutoAdminLogon
β”œβ”€β”€ DefaultUserName
└── DefaultPassword

HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device
└── DevicePasswordLessBuildVersion

HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\...
β”œβ”€β”€ ACSettingIndex
└── DCSettingIndex

HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
└── InactivityTimeoutSecs

HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization
└── NoLockScreen

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

You are free to:

  • βœ… Use commercially
  • βœ… Modify and distribute
  • βœ… Use privately
  • βœ… Sublicense

🀝 Contributing

Contributions are welcome! If you have ideas for improvements:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

⭐ Show Your Support

If this script saved you time and hassle, please consider:

  • ⭐ Starring this repository - Helps others discover it!
  • πŸ”„ Sharing with friends - Spread the Windows 7 nostalgia!
  • πŸ› Reporting issues - Help make it better for everyone!
  • πŸ’¬ Leaving feedback - Let me know how it works for you!

πŸ“ž Contact & Support


πŸ™ Acknowledgments

  • Inspired by the simplicity of Windows 7 auto-login
  • Built for users who value convenience on personal devices
  • Thanks to the Windows community for registry documentation

πŸ“Š Stats

GitHub repo size GitHub last commit GitHub issues GitHub pull requests


Made with ❀️ by ElScelt

Bringing back the Windows 7 experience, one auto-login at a time!

⭐ Star this repo if you found it helpful! ⭐

About

πŸš€ Automatically log into Windows 10/11 without password prompts. Disable Windows Hello PIN and password requirements on boot & wake. Bring back the Windows 7 experience! ⚑

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published