Find Last Modified Date for Windows Services - Guide

Analyzing Windows Service Installation and Modification Times
Determining the installation or modification dates of Windows services can be crucial when troubleshooting a compromised system. A SuperUser reader recently posed a question regarding how to accomplish this task.
Accessing Service Installation Information
Understanding when services were installed or altered provides valuable insight into potential malicious activity. This information can aid in identifying the source of a system compromise.
The following details are based on a response from the SuperUser community, a question-and-answer platform focused on technical computing.
- SuperUser is a segment of Stack Exchange.
- Stack Exchange is a network of communities dedicated to Q&A.
The screenshot illustrating Notepad was contributed by Flyk, a member of the SuperUser community.
Windows provides methods for examining service details, including installation dates. These details can be accessed through command-line tools or the Services management console.
Analyzing service timelines is a key step in forensic investigations. It helps to reconstruct the sequence of events on a compromised system.
Determining Service Creation and Modification Dates in Windows
A SuperUser user, Lucas Kauffman, has posed a question regarding the identification of creation or last modified dates for Windows services.
In scenarios involving compromised systems under analysis – specifically to detect recently installed services or ascertain their installation times – what methods can be employed? Where within the Windows registry is the creation date information for a service located?
The core inquiry centers on locating the Creation Date or Last Modified Date associated with services running within a Windows environment.
Locating Relevant Registry Information
Determining the precise creation date of a Windows service isn't directly available as a single registry entry. However, several registry keys provide clues and related timestamps that can be utilized for analysis.
Key Registry Locations
The following registry locations are crucial for gathering information about Windows services:
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services: This key contains subkeys for each installed service.
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServiceGroupOrder: This location lists service groups and their order.
Analyzing Registry Entries
Within each service's subkey under Services, examine these values:
- ImagePath: The path to the service executable.
- DisplayName: The user-friendly name of the service.
- Start: Indicates the service's start type (e.g., auto, manual, disabled).
- Created: While not always present, this value, if available, can indicate a creation timestamp.
Utilizing 'Created' Value
If the Created value exists within a service's registry key, it represents a potential creation timestamp. However, its presence isn't guaranteed across all services or Windows versions.
Leveraging File Creation Dates
Since the ImagePath points to the service executable, the creation date of the file itself can serve as a proxy for the service's installation date. This can be determined using file system tools.
Considering Last Modified Dates
The last modified date of the service executable file, accessible through file system properties, can also provide valuable insight. Changes to the executable may indicate updates or modifications to the service.
Combining Data Sources
For a comprehensive analysis, it's recommended to correlate information from the registry (Created value, if present) with the file creation and modification dates of the service executable. This multi-faceted approach yields the most accurate results.
Forensic Considerations
When analyzing a compromised system, remember that timestamps can be manipulated. Consider examining event logs and other system artifacts to corroborate findings and identify potential tampering.
Determining Windows Service Dates
Contributors Flyk and Andrew Medico from SuperUser provide insights into locating service dates within Windows. Flyk begins by explaining the limitations of finding a service's original creation date.
Specifically, neither the Services application nor the Windows registry maintains records of when a service was initially created. However, a Last Modified Date is available, though it isn't directly visible through standard interfaces.
Accessing the Last Modified Date
The Last Modified Date can be accessed utilizing the RegQueryInfoKey tool. All Windows services are stored within the registry, allowing for inspection of modification dates.
To locate this information, examine the registry keys associated with the service in question, found at the following path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.
Alternatively, exporting the relevant registry keys to a text file will reveal the Last Modified Date for each key within the exported data.

Furthermore, a PowerShell-based solution for retrieving the Last Modified Date has been previously discussed on Stack Overflow.
Andrew Medico adds to this discussion with information regarding service creation logging.
Service Creation Logging in Vista and Later
Beginning with Windows Vista, the creation of services is logged to the System Event Log. This logging utilizes the Service Control Manager Event ID 7045.
An example command and its resulting event log entry are provided for illustration.


Readers are encouraged to contribute further insights in the comments section. For a more comprehensive discussion and additional perspectives from other technical users, the complete thread can be found on Stack Exchange.