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 π»
- β 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
- 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
Clone this repository or download the script directly:
git clone https://github.com/ElScelt/Windows-AutoLogin.git
cd Windows-AutoLoginOr download the ZIP file and extract it.
- Right-click on PowerShell (or Windows Terminal)
- Select "Run as Administrator"
- Navigate to the script folder:
cd "C:\path\to\Windows-AutoLogin"
Run the script with bypass execution policy:
.\windows_autologin_setup.ps1When prompted, enter your Microsoft account password (NOT your PIN!)
The script will automatically configure all necessary settings.
Choose Y when asked to restart, or restart manually later.
That's it! Your PC will now log in automatically. π
Changed your Microsoft account password? No problem! Just run the script again:
- Open PowerShell as Administrator
- Run
.\windows_autologin_setup.ps1 - Enter your new password
- Restart your PC
The script will update all stored credentials automatically.
The script modifies several Windows registry keys to achieve password-free login:
-
Disables Windows Hello Requirements
- Removes PIN sign-in enforcement
- Disables biometric requirements
- Disables convenience PIN
-
Enables Automatic Login
- Sets
AutoAdminLogonto enabled - Stores your username and password securely in registry
- Configures automatic sign-in on boot
- Sets
-
Removes Password Requirement
- Modifies
DevicePasswordLessBuildVersionregistry key - Enables the hidden netplwiz checkbox functionality
- Modifies
-
Disables Wake Password (AC Power)
- Removes password prompt when waking from sleep while plugged in
- Modifies power management settings
-
Disables Wake Password (Battery)
- Removes password prompt when waking from sleep on battery
- Ensures consistent behavior across power states
-
Sets Inactivity Timeout
- Disables automatic lock after inactivity
- Prevents password prompts during extended idle periods
-
Applies Compatibility Fixes
- Disables dynamic lock
- Disables lock screen
- Ensures smooth operation across Windows versions
IMPORTANT: This script stores your password in the Windows registry in plain text. This is how Windows AutoLogin functionality works by design.
- β 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
- β 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.
Want to go back to requiring a password? You have two options:
- Press
Win + R, typenetplwiz, press Enter - Check the box: "Users must enter a user name and password to use this computer"
- Click Apply and OK
- Go to Settings > Accounts > Sign-in options
- Under "Require sign-in", select "When PC wakes up from sleep"
- Press
Win + R, typeregedit, press Enter - Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon - Change
AutoAdminLogonvalue to0 - Delete
DefaultPasswordentry - Restart your PC
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserMake sure you're running PowerShell as Administrator (right-click β Run as Administrator)
- Verify you entered the correct password
- Restart your PC (changes require a restart to take effect)
- Check if any Group Policy is overriding the settings
Re-run the script - some power management settings may need reapplication.
- 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
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
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
Contributions are welcome! If you have ideas for improvements:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
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!
- Author: ElScelt
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- 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
Made with β€οΈ by ElScelt
Bringing back the Windows 7 experience, one auto-login at a time!
β Star this repo if you found it helpful! β