Windows services: permissions and execution
Distinguish service-object rights, executable permissions and the identity that will run the code.
A Windows service involves several security objects. Being able to query its configuration, modify its configuration, write a related file, or restart it are not interchangeable permissions.
Start with the right object
Microsoft distinguishes the Service Control Manager from each service object.
For the latter, SERVICE_QUERY_CONFIG, SERVICE_CHANGE_CONFIG,
SERVICE_START and SERVICE_STOP grant different operations. The requested
rights are checked when a handle is opened. rights
The executable and its directories have their own permissions. A service-object access check does not establish file-write access, and an executable’s file ACL does not establish the right to reconfigure or restart the service.
Gather configuration without changing it
An illustrative local inventory query is:
Get-CimInstance -ClassName Win32_Service |
Select-Object Name, State, PathName, StartNameUse it only within an approved context. It describes configuration, not a successful privilege change. Keep any real output in the mission workspace, not in this wiki.
The platform documentation also notes that enumeration can silently omit a service when the caller lacks query-status access. An empty inventory is not necessarily a complete inventory. rights
Follow the entire proposed path
For a file- or dependency-based hypothesis, identify what the service actually loads, who can influence it, the execution identity, and the event that would cause it to run. A writable candidate file without evidence that it is selected does not demonstrate execution.
Likewise, an unquoted-path hypothesis needs more than a space in a string. The interpretation of the command line, applicable search locations, their permissions and the service’s effective behavior need separate support.
Keep review separate from modification
Replacing a binary, changing an ACL or restarting a service can affect availability and is not a read-only observation. This page supplies no authorization for those actions. It intentionally contains no account-creation payload, replacement DLL or restart sequence.
Sources and adaptation
microsoft-service-rights — Service security and access rights, read 2026-11-20. This source supports the service-object distinctions, not an assertion that a particular DLL or path can be hijacked.
rtfm-legacy-services — 4_systeme/2_windows/5_privesc/services.md,
adapted to retain the service/file distinction while excluding identities,
credential literals and executable replacement examples.
Provenance and confidence
- Version
- 1
- Sources reviewed
- 2026-11-20
- Confidence
- medium — Service-object rights reviewed against Microsoft documentation; file replacement, DLL loading and a deployed service's behavior are not verified.
Also searched as: services windows, droits de service, service permissions