How to Generate and Set Random Password Automatically for Windows User Accounts

Strong password is increasingly important in modern computing era in order to protect and secure an user account. An online account accessible from Internet is more prone to hacking and brute-force attacking, however, it doesn’t mean a Windows computer which requires physical access to the PC cannot be hacked by people with malicious intent.

Thus, it’s important to assign a good, secure, random and strong password to Windows user accounts, especially administrator accounts. Typically, password should be strong and unique, which means a password should satisfy the following conditions:

  • Password should be unique, meaning a different password for each account.
  • Password should not be a word or words that can be found in the dictionary.
  • The longer the password length, the better, where typical suggestion is of at least 8 characters long.
  • Password should be consisted of alphanumeric (alphabet and number) characters and symbols. The alphabet should be made up of lower and upper-case if possible.

For user who out of imagination to create a random and strong password (example of weak passwords), Windows operating system has a built-in mechanism to automatically generate and assign a random password to the user accounts. However, do take note that the generated password will be automatically set to the user account, overriding and replacing the existing password. So, remember to write down the generated password.

In order to instruct Windows to automatically generate a password randomly and set it as the new password for a user account, follow these steps:

  1. Open a command prompt window. In Windows Vista or Windows 7, the command prompt has to have elevated administrator privileges.
  2. Run the following command,

    net user <user name> /random

    Replace <user name> with the actual user account name to have a new random password, for example,

    net user administrator /random

    Random Password

  3. A relatively secure, strong and random 8-character password would be display on screen, and automatically set as the new password for the user account specified. User has to use the new randomly generated password to sign in to Windows, so remember the new password.

Tip: Not satisfy with the password auto generated, just repeat the command to get a new random password.

The trick works in most Windows versions, including Windows XP, Windows Vista, Windows 7 and Windows Server. Users can then use password strength checker to verify the secure level of the password.

2 Responses to “How to Generate and Set Random Password Automatically for Windows User Accounts”

  1. List of Common and Easily Hacked Passwords That Should Not Be Used » My Digital Life
    January 7th, 2010 00:10
    2

    [...] should also not be used with any other accounts in order to properly protect the account. Rather, a random password should be [...]

  2. sirius
    January 6th, 2010 10:35
    1

    thanks very helpful.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to My Digital Life Comments RSS feed to receive notification of latest comments posted.

New Articles

Incoming Search Terms for the Article

net user /random - net user administrator /random - net user random - net user administrator password - net user administrator random - net user random password - +generate password windows code - xp random administrator password - xp random password list - how are password of new users generated in windows? - setting random password for users in - automatically create password - php create random password from word list - windows random password command - generate password automatic windows server - write the windows live username and get the password on the web - ad user accounts "generate username" - net user password random - php generate strong random password - windows generate password - generate pasword for user - automatic wifi password in net privileges - how to generate random password - Automatically with random - net user administrator /random. - net user change password random - random administrator password - net user %username% - overriding passwords messenger - set random password from command prompt - "net user Administrator password" - generate random password command line winxp - gen password - generate passwords for users - create random administrator password - net administrator /random - username random - active directory random password - random password for windows login - change adminstrator password command promt /random - .net + generate username - how to create password automatically - how to send auto generated email in php if the condition satisfies - how to secure emails via change password rendomly - wow random password reset - automatic generate users in AD - create random user domain password net - create windows user account with md5 hash for password - password random win xp - verifying user with randomly generated words -