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:
- Open a command prompt window. In Windows Vista or Windows 7, the command prompt has to have elevated administrator privileges.
- Run the following command,
net user <user name> /randomReplace <user name> with the actual user account name to have a new random password, for example,
net user administrator /random
- 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.
Related Articles
- How to Automatically Log On or Sign In to a User Account in Windows 7
- Firefox Add-on: Reset Multiple Accounts’ Passwords Simultaneously
- Automatic Login or Logon to Windows Vista without Clicking
- Enable Automatically Logon/Login Into Windows XP
- Unhide the Administrator Account in Windows XP
- Proper Way to Generate MD5 Hash for XCache Administration Password with md5sum or PHP
- How to Reset AdSense Password Not Associated with Google Account
- Change User Name on Linux
- A Click To Login Web Account With Roboform
- How to Change Windows Live (Hotmail and Messenger) Password










































January 7th, 2010 00:10
[...] should also not be used with any other accounts in order to properly protect the account. Rather, a random password should be [...]
January 6th, 2010 10:35
thanks very helpful.