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.