Sub topic 19
Local Users and Groups, gpedit, and Local Security Policy
This chapter covers three consoles that control who can sign in to a Windows PC and what they are allowed to do. It assumes you can open Run, know the difference between an administrator and a standard user, and have read the chapters on MMC and on gpupdate and gpresult.
Where each tool fits
| Tool | Run command | Controls | Available in |
|---|---|---|---|
| Local Users and Groups | `lusrmgr.msc` | Local accounts and group membership | Pro, Enterprise, Education (not Home) |
| Local Group Policy Editor | `gpedit.msc` | Computer and user settings, including Administrative Templates | Pro, Enterprise, Education (not Home) |
| Local Security Policy | `secpol.msc` | Security settings only: passwords, lockout, auditing, user rights | Pro, Enterprise, Education (not Home) |
On Windows Home, none of these consoles exist. Use the Settings app, Control Panel, or the net user and net localgroup commands instead.
All three need administrator rights. On the exam, a scenario that says "the technician needs to change a setting for all local users" usually points to one of these consoles.
Local Users and Groups
lusrmgr.msc has two folders: Users and Groups. The same snap-in is inside Computer Management under System Tools.
Users
Right-click a user to set a password, rename the account, or delete it. Double-click a user to open its properties. These checkboxes appear on the General tab:
- User must change password at next logon: forces a new password after an admin reset.
- User cannot change password: useful for shared service accounts.
- Password never expires: exempts the account from the maximum password age.
- Account is disabled: blocks sign-in but keeps the profile and files.
- Account is locked out: appears after too many failed sign-ins. Clear it to unlock the account.
The built-in Administrator and Guest accounts are disabled by default. Leave them disabled unless you have a specific reason.
Disabling an account is safer than deleting it. Deleting removes the account's security identifier (SID), so a new account with the same name does not get the old permissions or encrypted files back.
Groups
A group gives the same permissions to every member, so you assign rights once instead of per user. The groups to know:
| Group | Purpose |
|---|---|
| Administrators | Full control of the computer |
| Users | Normal day-to-day use, with no system-wide changes |
| Guests | Very limited, temporary access |
| Power Users | Legacy group kept for compatibility. It has no extra rights in modern Windows. |
| Remote Desktop Users | May connect with Remote Desktop |
| Backup Operators | May back up and restore files regardless of file permissions |
To promote a user, open the Administrators group, choose Add, and enter the account name.
The same tasks from the command line
net user
net user alice /active:no
net user alice *
net localgroup Administrators alice /add
net localgroup AdministratorsThe first command lists local accounts. The second disables alice. The third prompts for a new password for alice without echoing it. The last two add alice to Administrators and list the group's members.
Local Group Policy Editor (gpedit.msc)
Group Policy is a set of centrally defined settings. On a standalone PC, the local policy holds them. The editor has two top-level branches:
- Computer Configuration applies to the machine, whoever signs in.
- User Configuration applies to the person signing in, wherever they sign in.
Each branch has Software Settings, Windows Settings, and Administrative Templates. Administrative Templates hold thousands of registry-backed options, such as blocking access to Control Panel or disabling removable storage. Each setting is Not Configured, Enabled, or Disabled. Read the setting's description carefully, because some settings are worded as "Turn off ..." and Enabled then means the feature is off.
Changes apply at the next refresh, which happens in the background roughly every 90 minutes. To apply them now, run gpupdate /force. To see what actually applied, run gpresult /r.
Precedence
A computer joined to a domain also receives domain policies. The local policy is processed first, so settings from the domain win any conflict.
This explains a common symptom. You change a setting in gpedit.msc on a work PC, and it reverts or is greyed out. A domain policy is overriding it, and you should check with gpresult /r.
Local Security Policy (secpol.msc)
secpol.msc shows only the Security Settings subtree of the local policy, so a change here is the same as changing it under gpedit.msc > Computer Configuration > Windows Settings > Security Settings. Its main sections are:
- Account Policies
- Password Policy: minimum length, complexity, maximum and minimum age, and history.
- Account Lockout Policy: lockout threshold (failed attempts), lockout duration, and the reset counter.
- Local Policies
- Audit Policy: which events are written to the Security log.
- User Rights Assignment: who may sign in locally, shut down the system, or change the time.
- Security Options: many settings, such as renaming the Administrator account.
- Windows Defender Firewall with Advanced Security, which opens the firewall console.
The lockout threshold defaults to 0, which means accounts never lock out. A hardened PC sets a value such as 5 invalid attempts.
Common errors
- "Windows cannot find gpedit.msc": the PC runs Home edition.
- Setting reverts: a domain policy overrides it. Check
gpresult /r. - User still has old rights: they need to sign out and back in, because group membership is read at sign-in.
- Lockout during testing: unlock the account in
lusrmgr.mscby clearing Account is locked out.
Exercise
A technician on a Windows 11 Pro workstation must make every user's password at least 12 characters, and then make the change apply immediately. Which console and command should they use?
Show answer
Open Local Security Policy (secpol.msc), go to Account Policies > Password Policy, and set Minimum password length to 12. Then run gpupdate /force in an elevated Command Prompt, and optionally verify with gpresult /r.
Exercise
A user on Windows 10 Home reports that gpedit.msc is missing. Name one way to disable a local account on that PC.
Show answer
Use the command line: net user username /active:no from an elevated Command Prompt. The Settings app or Control Panel user accounts page also works for basic account management.