Pcornel
Windows · Windows Server

Roles

Cheat sheet · https://pcornel.dk/topic.php?topic=3226

Back to the Topic

Answer

A server role describes a primary workload responsibility. Installing a role adds binaries, services, management components and dependencies, but usually still requires role-specific configuration before it provides useful service.

Remember

  • Role installed ≠ role configured ≠ role healthy.
  • A role can contain role services that are independently selectable.
  • Removing a role can affect dependent components and workload data/configuration.
  • Server Core supports many, but not every, Windows Server role.

First checks

  • Get-WindowsFeature | ? Installed — installed roles and features
  • Install-WindowsFeature <name> -IncludeManagementTools — add a role/feature
  • Get-ComputerInfo -Property WindowsInstallationType,OsName — Server Core or Desktop Experience
  • Get-WinEvent -LogName System -MaxEvents 30 — recent system events

Verify in this order

role installed → configured → services running

Where it usually breaks

First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.

Windows Server → Roles reference map

BoundaryMeaningEvidence limit
RolePrimary server workloadmay contain role services
Role serviceSubcomponent of rolecan have own dependencies
InstalledComponent presentnot configured/healthy
OperationalRole serves workloadrequires functional test

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3226

Confirmation

Confirm action

Continue?