Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Tutorials

Vista - Account Lockout when a User Fails to Logon - Enable

Comment
 

Account Lockout when a User Fails to Logon - Enable

How to Set Vista Account Lockout when a User Fails to Logon
Published by Brink
09-23-2008

How to Set Vista Account Lockout when a User Fails to Logon

Information
  This will allow you to set Vista to lockout user accounts at logon when a user fails to have a valid logon for how many attempts you specify until how many minutes you specify until they can try logging on again, or until a administrator unlocks the user account. By default, this is not enabled in Vista.
WARNING
  Failed password attempts against workstations or member servers that have been locked using either CTRL+ALT+DELETE or password protected screen savers count as failed logon attempts. If this applies to you, be sure to allow for this in the Account lockout threshold amount below.
RELATED LINKS:EXAMPLE: A User Account Locked Out at Logon
logon_screen.jpg




METHOD ONE:
Through Local Security Policy
NOTE
  The Vista Home Basic and Home Premium editions do not have this feature. See METHOD THREE below for how with these editions instead.
1. Open the Local Security Policy editor.

2. In the left pane, under Security Settings, click on the arrow next to Account Policies to expand it. (See screenshot below step 3)

3. In the left pane, click on the Account Lockout Policy folder.
local_security_policy.jpg
4. To Set the Number of Failed Logon Attempts Allowed -
NOTE: This must be set to a number other than the default 0 (number zero) to enable Account Lockout and to be able to set or change steps 5 and 6.
A) In the right pane, right click on Account lockout threshold and click on Properties. (See screenshot above)

B) Type in a number between 0 and 999 failed attempts you want allowed and click on OK. (See screenshot below)
NOTE: Typing in the number 0 will disable Account Lockout and set steps 5 and 6 back to the default setting of Not Applicable.
threshold_properties.jpg
C) Click on OK in the Suggested Value Changes window. (See screenshot below)
NOTE: You will not see this window unless you are changing the number of attempts from step 6B from 0 or to 0. You can still manually change these Suggested Settings for steps 5 and 6 below if you do not want them set at 30 minutes.
threshold_suggested_values.jpg
D) The setting will now look similar to this. (See screenshot below)
local_security_policy2.jpg
5. To Set or Change the Account Lockout Duration -
NOTE: This setting determines the number of minutes a locked out account remains locked out before it is automatically unlocked. Step 4B above must be set to a number other than 0 (zero) to be able to change this setting.
A) In the right pane, right click on Account lockout duration and click on Properties. (See screenshot above)

B) Type in a number between 0 and 99,999 minutes you want before unlock and click on OK. (See screenshot below)
NOTE: If you set the account lockout duration to the number 0, the account will be locked out until an administrator explicitly unlocks it using step 8. If you set the account lockout duration to a number other than 0, then it must be greater than or equal to the reset time in step 6.
duration_properties.jpg
C) Click on OK in the Suggested Value Changes window. (See screenshot below)
NOTE: You will not see this window unless you are changing the number of minutes to a number lower than what they are set for in step 6. You can still manually change these Suggested Settings for step 6 below if you do not want it set as the same as step 5B.
duration_suggested_values.jpg
6. To Set or Change the Reset Account Lockout Counter -
NOTE: This setting determines the number of minutes that must elapse after a failed logon attempt before the failed logon attempt counter is reset to 0 failed logon attempts. Step 4B above must be set to a number other than 0 (zero) to be able to change this setting.
A) In the right pane, right click on Reset account lockout counter after and click on Properties. (See screenshot below step 3 or 4D)

B) Type in a number between 1 and 99,999 minutes you want before counter reset and click on OK. (See screenshot below)
NOTE: This must be less than or equal to the minutes set for the Account lockout duration in step 5B.
reset_lockout_properties.jpg
7. When done, close the Local Security Policy window. (See screenshot below step 3 or 4D)

8. How to Unlock a User Account Manually from a Administrator Account -
NOTE: A Administrator account can manually unlock a user account that is locked out at any time. This will be the only way to unlock a user account if you set step 5B to 0 (number) minutes.
A) Open the Local Users and Groups manager.

B) In the left pane, click on Users. (See screenshot below)

C) In the middle pane, right click on the locked out user account you want to unlock and click on Properties.
lusrmgr.jpg
D) Uncheck the Account is locked out box and click on OK. (See screenshot below)
lusrmgr_properties.jpg
E) When done, close the Local Users and Groups window. (See screenshot below step 8C)


METHOD TWO:
Through a Elevated Command Prompt
NOTE
  You can do this method in all versions of Vista.
1. Open a elevated command prompt.

2. To See the Current Account Lockout Settings -
A) In the command prompt, type net accounts and press Enter. (See screenshot below)
NOTE: The listed items boxed in red is the current status of the Account Lockout settings.

3. To Set the Number of Failed Logon Attempts Allowed -
NOTE: The Lockout threshold setting must be set to a number other than the default 0 (number zero) to enable Account Lockout and to be able to set or change steps 4 and 5. Typing in the number 0 in 3A will disable Account Lockout.
A) In the command prompt, type net accounts /lockoutthreshold:X and press Enter.
NOTE: Substitute X for a number between 0 and 999 failed attempts you want allowed. For example: net accounts /lockoutthreshold:30
4. To Set or Change the Account Lockout Duration -
NOTE: This Lockout duration <minutes> setting determines the number of minutes a locked out account remains locked out before it is automatically unlocked. Step 3A above must be set to a number other than 0 (zero) to be able to change this setting.
A) In the command prompt, type net accounts /lockoutduration:X and press Enter.
NOTE: Substitute X for a number between 0 and 99,999 minutes you want before unlock. For example: net accounts /lockoutduration:30
WARNING: If you set the account lockout duration to the number 0, the account will be locked out until an administrator explicitly unlocks it using step 10 in METHOD ONE. Do not set this to 0 if you have the Vista Home Basic or Home Premium editions. You will not be able to use step 10 in METHOD ONE. If you set the account lockout duration to a number other than 0, then it must be greater than or equal to the reset time in step 5.
5. To Set or Change the Reset Account Lockout Counter -
NOTE: The Lockout observation window <minutes> setting determines the number of minutes that must elapse after a failed logon attempt before the failed logon attempt counter is reset to 0 failed logon attempts. Step 6B above must be set to a number other than 0 (zero) to be able to change this setting.
A) In the command prompt, type net accounts /lockoutwindow:X and press Enter.
NOTE: Substitute X for a number between 1 and 99,999 minutes you want before counter reset. For example: net accounts /lockoutwindow:30
WARNING: This must be less than or equal to the minutes set for the Account lockout duration in step 4A.
6. Close the command prompt. (See screenshot below step 2A)
NOTE: If you get a error while doing steps 3, 4, or 5, then check to make sure that you have followed the WARNING in each step.
That's it,
Shawn
Published by
Brink's Avatar
Administrator

Join Date: Apr 2007
Location: Texas, USA
Posts: 25,919
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools

Applies to
All Vista Versions
64 Bit & 32 Bit

Comment

Tutorial Tools


Similar Threads
Tutorial Category
On Vista Home 32bits: service logon as administrator account fails Software
Can't logon to a user account Vista General
Logon to a default user account Vista account administration
Enable applications for new user account Vista General
New User - Logon Fails Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
Tutorial powered by GARS 2.1.8m ©2005-2006

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46