Sub topic 7
Windows user accounts, groups, and password policies
This chapter assumes you can sign in to Windows, open Settings and an elevated Command Prompt, and know what a domain is at a basic level. It covers the account types you will see on A+ Core 2, how groups assign rights, and how password and lockout policies reduce the risk of guessed or stolen credentials.
Account types
Windows identifies every person or service by an account. The type of account decides where the credentials are stored and who can manage them.
| Account type | Where credentials live | Typical use |
|---|---|---|
| Local account | The SAM database on that one PC | Standalone PCs, labs, kiosks |
| Microsoft account | Microsoft's online service | Home and small-office PCs that sync settings |
| Domain account | Active Directory on a domain controller | Business networks with central management |
A local account works only on the computer that holds it. A domain account works on any domain-joined computer, and an administrator manages it centrally.
Built-in accounts
Windows creates several accounts at install time:
- Administrator has full control. It is disabled by default on modern Windows. Leave it disabled, or rename it, because attackers know the name.
- Guest allows sign-in without a password and has very limited rights. It is disabled by default, and you should keep it that way.
- DefaultAccount and WDAGUtilityAccount are system-managed accounts. Do not delete or use them.
Disabling an unused account is better than deleting it when you may need its history, such as the files in its profile.
Groups and effective rights
A group is a named collection of accounts. You grant rights to the group once, and every member receives them. This is how least privilege scales, because you assign by role instead of by person.
| Group | What members can do |
|---|---|
| Administrators | Install software, change system settings, manage all accounts |
| Users | Run apps and change only their own settings and files |
| Guests | Temporary, restricted access |
| Power Users | Legacy group kept for old software. Avoid it. |
| Remote Desktop Users | Connect to the PC over Remote Desktop |
| Backup Operators | Back up and restore files regardless of file permissions |
A user can belong to several groups. Rights add together, so a person in both Users and Remote Desktop Users gets both sets.
Standard user versus administrator
Daily work should use a standard user account. If malware runs under a standard account, it cannot change system files or install drivers. If it runs under an administrator account, it can. User Account Control (UAC) adds a prompt before elevated actions, but a standard account is still the stronger default.
Managing accounts
You can manage accounts in several places:
- Settings > Accounts is the simple interface for adding family members and other users.
- lusrmgr.msc (Local Users and Groups) shows all local users and groups. It is available in Pro, Enterprise, and Education editions.
- control userpasswords2 opens the classic User Accounts dialog.
- net user and net localgroup work from an elevated Command Prompt and are useful in scripts.
The following commands create a user, prompt for the password so it does not appear in the command line, force a password change at first sign-in, and add the user to a group:
net user labuser * /add
net user labuser /logonpasswordchg:yes
net localgroup "Remote Desktop Users" labuser /add
net localgroup AdministratorsThe last command lists the members of Administrators so you can confirm no one was added by mistake. To remove a person's membership, use net localgroup Administrators labuser /delete.
Disabling the Guest account removes an unnecessary login path:
net user guest /active:noPassword policies
A password policy sets minimum standards for every local account. On a single PC, open Local Security Policy (secpol.msc) and go to Account Policies > Password Policy. In a domain, Group Policy pushes these settings to many computers at once.
| Setting | What it does | Example value |
|---|---|---|
| Minimum password length | Shortest allowed password | 12 characters |
| Password must meet complexity requirements | Requires three of four character types and blocks the username | Enabled |
| Maximum password age | Days before a change is forced | 90 |
| Minimum password age | Days before a user may change it again | 1 |
| Enforce password history | Number of old passwords that cannot be reused | 24 |
| Store passwords using reversible encryption | Weakens storage. Needed only by rare legacy apps. | Disabled |
The four character types are uppercase letters, lowercase letters, digits, and symbols. Minimum password age matters because without it, a user forced to change a password can change it repeatedly until the history list is exhausted and then return to the old one.
Length gives more protection than complexity rules. Current guidance favors longer passphrases and discourages forced frequent changes unless a compromise is suspected. The A+ exam still tests the classic settings, so know both ideas.
Account lockout policy
Lockout stops guessing attacks. It is found under Account Policies > Account Lockout Policy:
- Account lockout threshold is the number of failed attempts before the account locks.
- Account lockout duration is how long the account stays locked.
- Reset account lockout counter after is how long Windows waits before it forgets earlier failures.
You can view and set these from the command line:
net accounts
net accounts /minpwlen:12 /maxpwage:90 /minpwage:1 /uniquepw:24
net accounts /lockoutthreshold:5 /lockoutduration:30 /lockoutwindow:30The first line shows current settings. The /minpwlen option in net accounts accepts values up to 14. The lockout window cannot be longer than the lockout duration. Complexity cannot be set with net accounts, so use secpol.msc for that.
Common errors and troubleshooting
- User cannot change a setting or install an app. The account is a standard user. Elevate with an administrator credential through UAC, and do not make the person an administrator permanently.
- Policy change has no effect. A domain Group Policy may override the local one. Run
gpupdate /forceand check withgpresult /r. - Account is locked out. Wait for the duration to pass, or have an administrator unlock it in lusrmgr.msc by clearing "Account is locked out".
- Password rejected during change. It likely fails length, complexity, or history rules.
- Departed employee. Disable the account first, then remove it after data is archived.
Exercise
A technician must give a contractor a temporary account on a Windows 11 Pro workstation. The contractor needs to run the accounting application and nothing else, and the account must lock after repeated bad passwords. Which group should the account join, and which policy setting limits password guessing?
Show answer
Place the account in the Users group (a standard user) rather than Administrators, which follows least privilege. Set the Account lockout threshold in the Account Lockout Policy, for example 5 invalid attempts, so repeated guessing locks the account.
Exercise
A user is forced to change a password every 90 days, but keeps cycling back to an old password by changing it many times in a row. Which two password policy settings stop this?
Show answer
Enforce password history, which blocks reuse of recent passwords, and Minimum password age, which prevents changing the password repeatedly in a short time to flush the history.