Sub topic 7
Windows user accounts, groups, and password policies
This chapter assumes you can open Settings, Computer Management, and an elevated command prompt. You should also know what a login is and what a domain is at a basic level.
The working model
Windows decides what a person can do from two things: the account they sign in with and the groups that account belongs to. Permissions are usually granted to groups, not to individual accounts. Adding a user to a group is then the only change needed to give that user access.
Account types
- Standard user: Can run apps and change personal settings. Cannot install system-wide software or change security settings.
- Administrator: Has full control of the machine. Use it only when a task requires it.
- Guest: A built-in account with minimal rights. It is disabled by default and should stay that way.
- Built-in Administrator: A default account that attackers know to target. Disable it or rename it, and use a named admin account instead.
Everyday work should use a standard account. If malware runs under a standard account, its damage is limited.
Common groups
| Group | Purpose |
|---|---|
| Administrators | Full control of the system |
| Users | Standard access for normal accounts |
| Guests | Temporary, restricted access |
| Power Users | Legacy group kept for old software compatibility. Avoid it. |
| Remote Desktop Users | Allowed to connect with Remote Desktop |
On a domain, Active Directory adds groups such as Domain Admins. Windows Home editions do not include the Local Users and Groups console (lusrmgr.msc). Use Settings or the command line there.
Managing accounts from the command line
This command disables the Guest account. Run it from an elevated prompt.
net user guest /active:noPassword policies
A password policy sets rules that every account must follow. On a standalone PC, edit it in Local Security Policy (secpol.msc) under Account Policies. On a domain, Group Policy applies it.
- Minimum length: Longer is better. Many organizations require 12 or more characters.
- Complexity: Requires a mix of character types.
- Maximum age: Forces a change after a set number of days.
- History: Stops users from reusing recent passwords.
- Account lockout: Locks the account after a set number of failed attempts. This slows brute-force guessing.
Common errors
- Leaving the Guest account enabled.
- Making users local administrators so a single app will run.
- Setting a lockout threshold so low that normal typing mistakes lock users out.
- Sharing one login among several people, which removes accountability.
Exercise
A new employee needs to read and edit files in a shared folder that the Accounting team already uses. What is the best way to grant access, and which account type should the employee have?
Show answer
Create a standard user account and add it to the Accounting group, which already holds the folder permissions. This follows least privilege and avoids editing permissions per user.