Roles
Cheat sheet · https://pcornel.dk/topic.php?topic=3226
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 featuresInstall-WindowsFeature <name> -IncludeManagementTools— add a role/featureGet-ComputerInfo -Property WindowsInstallationType,OsName— Server Core or Desktop ExperienceGet-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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Role | Primary server workload | may contain role services |
| Role service | Subcomponent of role | can have own dependencies |
| Installed | Component present | not configured/healthy |
| Operational | Role serves workload | requires 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