Windows Server · Lesson 03

Local Users, Groups & Privilege

Review local identities, administrative privilege, service accounts, scheduled-task principals, and remote-access groups without breaking required server functions.

The key question is not simply whether an account looks unfamiliar. The key question is what the identity does, what depends on it, and how much privilege it actually needs.

Lesson Snapshot

Identity types6
Main concernPrivilege + dependencies
Decision model3 categories
GoalLeast privilege

Learning objectives

What this lesson should help you do

01

Distinguish local accounts, domain accounts, built-in accounts, service identities, and privileged groups on Windows Server.

02

Use Computer Management, Local Users and Groups, and PowerShell to review local identities when they are applicable.

03

Recognize when local account management is limited or different on a domain controller.

04

Review Administrators and other privileged groups without removing accounts blindly.

05

Identify service-account dependencies before disabling or changing an account.

06

Apply least privilege while preserving required server roles, applications, and remote administration.

Identity map

Six kinds of identities to recognize

Local user

An account stored on the individual server. Local users are common on member servers but are not the main identity model on a domain controller.

Domain user

An account stored in Active Directory and usable according to domain permissions, group membership, and policy.

Built-in account

A Windows-created account or group with a special purpose. Built-in does not automatically mean unnecessary.

Service account

An identity used by a Windows service, scheduled task, application, or server role rather than a human user.

Privileged group

A group whose members receive administrative or security-sensitive rights.

Computer account

A machine identity used in Active Directory so systems can authenticate and participate in the domain.

Core idea

Privilege should match the job

A required account does not automatically need administrative rights. Preserve the function while reducing unnecessary privilege whenever the scenario permits.

Domain-controller warning

Local account procedures do not apply everywhere

Domain controllers manage identity through Active Directory rather than the normal local-user model used by member servers.

Identify the server role before opening Local Users and Groups.

Tool map

Exactly where to review identities

Computer Management

Win + R → compmgmt.msc → System Tools → Local Users and Groups → Users / Groups

Use on member servers where Local Users and Groups is available. This snap-in is not the normal account-management path on a domain controller.

Local Users and Groups

Win + R → lusrmgr.msc

Provides a direct view of local users and groups on supported non-domain-controller systems.

Server Manager

Start → Server Manager → Tools

Provides links to administrative consoles, including Computer Management and domain tools when installed.

Services

Win + R → services.msc → double-click a service → Log On tab

Shows whether a service runs under Local System, Network Service, Local Service, or a named account.

Task Scheduler

Win + R → taskschd.msc → Task Scheduler Library → open a task → General tab

Shows which identity runs the task and whether it uses elevated privileges.

PowerShell

Start → search PowerShell → Run as administrator when required

Useful for read-only inventory and verification when the cmdlets apply to the server's role.

Domain-controller note

Know when to switch to Active Directory tools

01

A domain controller does not use local users and local groups in the same way as a normal member server.

02

Domain identities are primarily managed through Active Directory tools.

03

Do not assume that missing Local Users and Groups means the system is broken.

04

On a domain controller, review Active Directory users, groups, and domain privilege instead of treating it like a standalone server.

Account review questions

Ten questions before changing an identity

01

Is this server a member server or a domain controller?

02

Does this account have an explicit scenario purpose?

03

Is the account enabled?

04

Is it a member of Administrators or another privileged group?

05

Does any service run under this account?

06

Does any scheduled task run under this account?

07

Does the account own required files, shares, or application data?

08

Is the account used for RDP or another required administrative path?

09

Is the account local or domain-based?

10

What evidence would justify disabling, removing, or reducing its privilege?

Important groups

Privilege is often granted through groups

Administrators

Members receive broad local administrative rights and should be limited to identities that actually require them.

Remote Desktop Users

Can be used to authorize non-administrative RDP access when the scenario requires remote desktop.

Users

Standard local group for ordinary local user rights on a member server.

Backup Operators

Has powerful backup and restore capabilities and should be reviewed carefully if used.

Event Log Readers

Allows reading event logs without full administrative privilege.

Performance-related groups

May grant access to performance monitoring or logging without full administrative access.

Built-in identities

Built-in does not mean safe to delete

Administrator

The built-in Administrator account is highly privileged. Review its state, purpose, naming, and scenario requirements before changing it.

Guest

The built-in Guest account is normally highly restricted and commonly disabled, but verify the actual scenario before making assumptions.

DefaultAccount / system-managed accounts

Some built-in system-managed accounts support Windows functionality and should not be treated like ordinary user accounts.

Service identities

LocalSystem, LocalService, and NetworkService are Windows service identities, not normal human accounts.

PowerShell inspection

Inventory users, groups, services, and tasks

Local users

Get-LocalUser | Select-Object Name, Enabled, LastLogon, PasswordRequired, PasswordExpires

Reviews local user state on systems where local-account cmdlets apply.

Local groups

Get-LocalGroup | Select-Object Name, Description

Lists local groups for privilege and role review.

Administrators

Get-LocalGroupMember -Group "Administrators"

Shows current local administrative membership on applicable member servers.

Remote Desktop Users

Get-LocalGroupMember -Group "Remote Desktop Users"

Reviews local RDP group membership when the group is used.

Named service accounts

Get-CimInstance Win32_Service | Select-Object Name, State, StartName, PathName

Shows which identities services use so account dependencies are not missed.

Scheduled-task principals

Get-ScheduledTask | Select-Object TaskPath, TaskName, @{Name="RunAs";Expression={$_.Principal.UserId}}

Helps identify tasks tied to a user or service identity.

Privilege signals

Where hidden privilege can appear

Direct Administrators membership

The account is explicitly present in the local Administrators group.

Nested domain group

A domain group may be added to local Administrators, giving all of its members local privilege.

Service logon

A named account may run a required service and therefore cannot be disabled casually.

Scheduled-task principal

A task may execute as the account, sometimes with highest privileges.

RDP authorization

The account may be part of an intended remote-administration workflow.

File or share ownership

An application or service may rely on the account's permissions or ownership.

Classification model

Required, Unnecessary, or Investigate

Required

The account or group membership has a documented scenario, service, application, role, or administrative purpose.

Keep it and reduce privilege only if the required function can still operate safely.

Unnecessary

The identity is clearly unauthorized or unused and has no required dependency.

Preserve relevant evidence, then disable, remove, or reduce privilege as justified.

Investigate

Purpose, ownership, logon history, service dependency, or authorization is unclear.

Review services, tasks, logs, shares, application configuration, and scenario notes before changing it.

Service-account review

Accounts can be infrastructure

What uses the account?

Check Services, Task Scheduler, applications, IIS application pools if applicable, backup tools, databases, and scripts.

What privilege does it have?

Review group membership, local rights, and whether it is unnecessarily administrative.

What happens if it is disabled?

Identify the exact service, task, application, or role that would fail.

Can privilege be reduced?

If the function does not require full administration, use the smallest rights necessary.

Is the password managed?

Named service accounts may require coordinated password handling so dependent services do not break.

Is the identity still needed?

Old service accounts may remain after software is removed and should be investigated carefully.

Controlled change examples

Change only confirmed unnecessary access

Disable a confirmed unnecessary local user

Change

Disable-LocalUser -Name "exampleuser"

Use only on an applicable member server after confirming the account has no required dependency.

Verify

Get-LocalUser -Name "exampleuser"

Remove unnecessary local administrative privilege

Change

Remove-LocalGroupMember -Group "Administrators" -Member "exampleuser"

Confirm the user still has the access needed for the scenario.

Verify

Get-LocalGroupMember -Group "Administrators"

Decision cases

Identity decisions in server context

Unknown account in Administrators

A local member server contains an unfamiliar enabled user in Administrators.

The privilege is high-risk, but the account may support a service or remote-management workflow.

Response

Review services, tasks, RDP authorization, logs, and scenario requirements before removing privilege or disabling the account.

Service runs as a named administrator

A required application service runs under an account that is also in Administrators.

The account is required, but its administrative privilege may be broader than necessary.

Response

Document the dependency, determine the minimum rights the application needs, and reduce privilege only after testing in the authorized environment.

Disabled account with no obvious purpose

The account is disabled and has no recent logon or known service dependency.

Disabled state reduces immediate risk, but evidence is still needed before deletion.

Response

Check tasks, services, files, shares, and scenario notes before deciding whether to remove it permanently.

Domain controller has no Local Users and Groups

lusrmgr.msc does not provide the expected local-account view.

A domain controller manages identities differently from a normal member server.

Response

Move to Active Directory tools and domain-group review rather than forcing local-account procedures.

Fictional defensive lab

Review identities on APP-SRV

Step 01

Identify the server role

In the fictional environment, APP-SRV is a member server hosting a required application and one SMB share.

Step 02

Open the account tools

Use Computer Management → Local Users and Groups → Users and Groups to inventory local accounts and privileged membership.

Step 03

Review service dependencies

One account named AppSvc runs the required application service. Record the service name, startup state, and account before changing anything.

Step 04

Classify identities

Morgan is the required administrator, AppSvc is required but should be least-privileged, and TempAdmin is unknown and must be investigated.

Step 05

Preserve and remediate

Document TempAdmin's privilege, tasks, logons, and service usage. If no dependency or authorization exists, remove unnecessary privilege or disable the account.

Step 06

Verify

Confirm Morgan still has administrative access, the required application runs, the SMB share works, and no required task or service failed.

Common mistakes

Identity mistakes that break servers

Treating every unfamiliar account as malicious

Service and application accounts may have unfamiliar names but legitimate dependencies.

Deleting before disabling

Disabling first can preserve context and make rollback easier while you verify dependencies.

Removing privilege without checking services

A service may fail if its account loses required rights.

Using local-account steps on a domain controller

Domain controllers require domain identity review through Active Directory tools.

Leaving too many administrators

Convenience-based privilege increases risk and should be reduced when the scenario permits.

Forgetting RDP authorization

A privilege change can accidentally break required remote administration.

Reflection

Test your identity reasoning

Question 1

Why should account review start by identifying whether the server is a member server or domain controller?

Question 2

What makes a service account different from a normal user account?

Question 3

Why can removing an account from Administrators break an application?

Question 4

Why is disabling often safer than immediately deleting an account?

Question 5

What evidence should exist before an account is classified as unnecessary?

Question 6

What should be verified after changing privilege?

Verification checklist

Confirm privilege changes did not break the server

01

Authorized administrators still have the required access.

02

Required standard users remain enabled.

03

Required service accounts still allow their services to start.

04

Required scheduled tasks still run under valid identities.

05

RDP or other remote administration still works when required.

06

No unnecessary local administrator remains.

07

No required application or share was broken by an account change.

08

Important account-related events were reviewed after high-impact changes.

Competition checklist

Before leaving local identity review

01

Identify whether the system is a member server or domain controller.

02

Open the correct account-management tool for that role.

03

Inventory users and privileged groups.

04

Review Administrators membership.

05

Review Remote Desktop Users when RDP is required.

06

Check named service accounts.

07

Check scheduled-task principals.

08

Classify identities as Required, Unnecessary, or Investigate.

09

Preserve evidence before disabling or removing suspicious accounts.

10

Prefer least privilege over unnecessary administration.

11

Verify required services and applications after changes.

12

Verify remote administration after privilege changes.

Next Windows Server lesson

Active Directory Users & Computers

Next, move from local identity to domain identity: users, groups, computers, privileged memberships, account properties, and safe Active Directory review.

Open Lesson 04 →