Question HKEY_LOCAL_MACHINE ServiceLastKnownStatus

Nov 26, 2005
15,189
401
126
Every computer I have is magically getting a DWORD key in the HKEY_LOCAL_MACHINE header. The Dword key is "ServiceLastKnownStatus" Value 2(2) and it never goes away. I can delete it and it reappears


What the F is that about?
 

mikeymikec

Lifer
May 19, 2011
20,219
14,828
136
No idea, I don't see it on my Win10 VM; the last update installed on that was KB5060533 (June cumulative).

Does it immediately re-appear? You might be able to track it with sysinternals process monitor (filter out purely for registry accesses).
 

pcgeek11

Lifer
Jun 12, 2005
22,186
4,919
136
The Windows registry entry ServiceLastKnownStatus provides information about the last known state of a service. It's located within the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<ServiceName> registry key, where <ServiceName> is the name of the specific service. This entry is a DWORD value and doesn't directly control the service's behavior; instead, it reflects the service's status as recorded during the last system boot or service control operation.



Key aspects of ServiceLastKnownStatus:
  • Reflects State:
    It stores the last known state of the service, such as whether it was running, stopped, or in a paused state before the system was last shut down or the service was last interacted with.
  • DWORD Value:
    The value is a DWORD (32-bit integer) that represents the service's state using specific numerical codes.
  • Not a Control:
    It's crucial to understand that this entry is a record of the service's state, not a setting that actively controls the service. Changes to this value will not directly affect the service's behavior.
  • Location:
    The registry path is structured as: `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<ServiceName>\` where <ServiceName> is the name of the service you're interested in (e.g., wuauserv for Windows Update service).
  • Possible Values:
    The DWORD value can hold various numerical codes representing different service states. These codes are defined by the operating system and indicate whether the service was started, stopped, paused, or in some other state. Microsoft Q&A describes how to find the state from the registry.
Example:
If you navigate to the registry path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv, you'll find the ServiceLastKnownStatus entry for the Windows Update service (wuauserv). If the value is 0x00000001, it indicates that the service was last known to be running, according to Microsoft Q&A.


In summary: The ServiceLastKnownStatus registry entry is a historical record of a service's state and should not be confused with settings that actively control the service. It's a useful piece of information for understanding past service behavior, but not for directly manipulating a service's operation.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |