• How To?
  • Tips ‘n Tricks
  • WordPress
  • Snippets
  • Software
    • Browsers
    • Downloads
  • Web
  • Tools
    • Character Counter
    • chmod Calculator
    • Entities Encoder
    • Live HTML Editor
    • My IP
  • Contact
Twitter Facebook Google+ RSS
You are here: SumTips » Tips 'n Tricks » Windows 8: Restrict Failed Login Attempts & Lockout Duration

Windows 8: Restrict Failed Login Attempts & Lockout Duration

Posted on January 19, 2013 by Renji | Short URL: http://sumtips.com/?p=8288

Windows comes with certain policy settings that allows users to change the number of failed logon attempts that are allowed before causing an account to be locked out. These options are disabled by default. In this post I will show you how to enable Account Lockout and manage it to prevent someone from guessing your password by entering random password continuously.

Enable Account Lockout Policy

The quickest way to enable Account Lockout is from the command line. Open an elevated Command Prompt and type in a command like this:

net accounts /lockoutthreshold:1

1 is the allowed attempts before lockout. Change the value to what you want to allow.

Another method to enable Account Lockout is using the Local Group Policy Editor. To open Policy Editor type in gpedit.msc in the Run dialog, and press Enter. When it opens, navigate to the following path:
Computer Configuration > Windows Settings > Security Settings > Account Policies > Account Lockout Policy

In the right-pane you’ll see three Policy settings:

  • Account lockout duration
  • Account lockout threshold
  • Reset account lockout counter after

windows 8 account policy
First, you’ve to enable “Account lockout threshold” before you can set the other policies (more on them below). To do so, double-click on the policy, set a value you want for “invalid logon attempts” (between 1 and 999, 0 disables policy), and hit OK. What you did here is exactly the same that the first command does, but in a GUI.

Specify Account Lockout duration

By default, an account is locked out for 30 minutes. To change the duration use this command:

net accounts /lockoutduration:5

windows 8 account lockout duration
This sets lockout duration to 5 minutes. You can set any value between 1 and 99999 minutes. If you want the account to be locked until an Admin unlocks it, set it to 0.

In the GPE, the “Account lockout duration” setting determines how many minutes a locked-out account remains locked before automatically becoming unlocked. Double-click on it to set a custom value instead of 30.

Reset Account Lockout Counter After

You can change how long Windows will remember the failed logon attempt before resetting the invalid attempt counter back to 0. By default this has the same value as Account Lockout Duration, but you can reduce it as below.

Set a custom time with the following command:

net accounts /lockoutwindow:1

Again, the available time range is between 1 to 99999 minutes.

In the Local Group Policy Editor window, double-click on “Reset account lockout counter after” to set a custom time.


Tweet

Related posts:

  • Enable Classic Logon in Windows 8, Require User name and Password
  • Windows 8: Display a Startup Message to Users
  • Prevent Users from Uninstalling Modern UI Apps in Windows 8
  • Prevent Users from Installing Modern UI Applications
  • Automatically Login and Lock Windows 8 on Startup
Categories: Tips 'n Tricks, Windows | Tags: Security, Tips 'n Tricks, Windows 8
Auto Restart Closed or Hanged Application, Process in Windows
Windows: How to Copy Folder Structure without Copying Files

  • Get Updates via Email

  • Recent Posts

    • CMS2CMS: Migrate Site from Drupal or Joomla to WordPress
    • WordPress: Add Preview Button in Distraction Free Writing
    • How to Activate or Deactivate Individual Jetpack Modules
    • Windows 8: Auto Update Defender with Windows Update Disabled
    • Automatically Start and Close Programs at Specific Time
    • How to Copy Code from Notepad++ with Syntax Highlighting
  • Random Posts

    • Yahoo Mail Updated, Gets Faster and More Social
    • Adding Hotkey Navigation Feature on WordPress Posts
    • Tag Editor For AVI, WMV, MPC, ASF, MP3, AVS, & More: TigoTago
    • Know How to Say a Phrase or Word Correctly with Phras.in
    • Change Windows Store Region to View Apps from Other Countries
    • Enhance Text Editors & Website Text Areas Functionalites
  • Categories

    • Blogging
    • Games
    • Google
    • How To?
    • Linux
    • Microsoft
      • Windows
    • Miscellaneous
    • Phone
    • Snippets
      • AutoHotkey Snippets
      • CSS Snippets
      • htaccess Snippets
      • JavaScript Snippets
      • PowerShell Snippets
      • WordPress Snippets
    • Social
    • Software
      • Browsers
    • Tips 'n Tricks
    • Wallpapers
    • Web
© SumTips. Contact | Sitemap | Privacy Policy