Running User Services in the Services.msc module


  1. Posts : 152
    Windows 10 Home
       #1

    User Services in the Services.msc module


    User Services & Standard Services

    In the Services.msc module some services are given a tag with a line underscore and a number/letter code. I will call these particular services "User Services" while the other ones will be called "Standard Services." Many of these services include the words "UserService" or "UserSvc" in their names, so that is why I call them User Services.

    The reason for creating this article is that these "User Services" are found to be difficult to modify, disable and remove. They appear to run bundled together within the same process and operation and kept separate from the "Standard Services." Not much information about these services are provided anywhere on the internet on even the most helpful and knowledgeable sites.

    The example I will use to explain how this works is the User Service "Agent Activation Runtime."
    (I will use the Agent Activation Runtime service as an example throughout this article.)
    Example: AarSvc_1d4b74c
    This process will show in the Services window as either
    AarSvc_1d4b74c or Agent Activation Runtime_1d4b74c.
    See screen shot 1 for visual reference.

    Running User Services in the Services.msc module-user-services-how-1.png

    On my version of Windows 10 there's 230 "Standard Services" and 20 "User Services" found in the Services.msc module.
    Below is a list of the 20 "User Services" on my computer.
    Note that on the left is the "Display Name" and on the right is the "Service Name"

    Display Name (Service Name)
    Agent Activation Runtime_1d4b74c (AarSvc_1d4b74c)
    Bluetooth User Support Service_1d4b74c (BluetoothUserService_1d4b74c)
    CaptureService_1d4b74c (CaptureService_1d4b74c)
    Clipboard User Service_1d4b74c (cbdhsvc_1d4b74c)
    Connected Devices Platform User Service_9c7f4bd (CDPUserSvc__1d4b74c)
    ConsentUxUserSvc_1d4b74c (ConsentUxUserSvc_1d4b74c)
    CredentialEnrollmentManagerUserSvc_1d4b74c (CredentialEnrollmentManagerUserSvc_1d4b74c)
    DeviceAssociationBroker_1d4b74c (DeviceAssociationBrokerSvc_1d4b74c)
    DevicePicker_1d4b74c (DevicePickerUserSvc_1d4b74c)
    DevicesFlow_1d4b74c (DevicesFlowUserSvc_1d4b74c)
    GameDVR and Broadcast User Service_9c7f4bd (BcastDVRUserService_9c7f4bd)
    MessagingService__1d4b74c (MessagingService_9c7f4bd)
    PimIndexMaintenanceSvc_1d4b74c (Contact Data_1d4b74c)
    PrintWorkflow_1d4b74c (PrintWorkflowUserSvc_1d4b74c)
    Sync Host_1d4b74c (OneSyncSvc_1d4b74c)
    UdkUserSvc__1d4b74c (UdkUserSvc_1d4b74c)
    User Data Storage_1d4b74c (UnistoreSvc_1d4b74c)
    User Data Access_1d4b74c (UserDataSvc_1d4b74c)
    Windows Push Notifications User Service_1d4b74c (WpnUserService_9c7f4bd)

    Note that these "User Services" might be showing in the Services.msc module using either their Display or Service names. Each time you turn on or restart your computer not only does the short code tag change but the placement in the list can change as each "User Service" toggles between it's own Display and Service name. This makes the Services list appear to change and you might believe that services are missing and new ones are there that weren't there before but truth is that the list hasn't changed. So look at the list I made above as a reference guide.

    You can see both names for these services in the Properties window when you double click on the process.
    See screen shot 2 for visual reference.
    1 = Service Name
    2 = Display Name

    Running User Services in the Services.msc module-user-services-how-2.png

    If you are modifying your Windows 10 to suit your personal needs you might want to disable some of these "User Services" and when you do you find that they cannot be disabled using the same method as disabling the "Standard Services." The usual method is to open the Properties window and select "Disabled" in the "Startup type:" drop down menu and then pressing the Apply button. This generally works with all the Standard Services but doesn't work with the User Services. When you try to disable a User Service in this manner you'll get the message that "The parameter is incorrect." and the User Service refuses to disable.
    See screen shot 3 for visual reference.

    Running User Services in the Services.msc module-user-services-how-3.png

    You can however disable and remove User Services with Registry Editor and File Explorer.

    Registry Editor

    All of the User Services are located in the same registry location as the Standard Services:
    Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
    You'll find them under their Service name, not their Display name.
    You'll also find that User Services are listed twice, but the Standard Services are listed once.
    The second iteration of User Services will include the special changing tag code.
    What you'll need to modify is the top one without the code tag in order to disable the User Service.
    See screen shot 4 for visual reference.
    1 = User Service double listing location

    Running User Services in the Services.msc module-user-services-how-4.png

    Once you select the top iteration of the User Service you want to disable look to your right panel screen.
    You'll find a list of strings there. Double click on the one that is named "Start"
    See screen shot 4 for visual reference.
    2 = Start string (DWORD) location

    When you double click the Start DWORD string the "Edit DWORD (32-bit) Value" window will open.
    You will be changing the number in the text box named "Value data:"
    See screen shot 5 for visual reference.

    Running User Services in the Services.msc module-user-services-how-5.png

    The number in this "Value data:" box is dependent on what it connects to, so these values are not the same on every key. In this situation the number here correlates with the selections in the "Startup type:" drop down menu in the AarSvc Service.
    See screen shot 6 for visual reference.
    1 = Automatic (Delayed Start)
    2 = Automatic
    3 = Manual
    4 = Disabled

    Running User Services in the Services.msc module-user-services-how-6.png

    Change this value from 3 to 4 and press the OK button.
    The "Edit DWORD (32-bit) Value" window will close and you'll see the data for it has changed in the Registry Editor window. This value was 0x00000003 (3) and now it is 0x00000004 (4)
    See screen shot 7 for visual reference.

    Running User Services in the Services.msc module-user-services-how-7.png

    Close Registry Editor, save your work and restart your computer.
    Open the Services.msc module once again and check whether the User Service was disabled correctly.
    See screen shot 8 for visual reference.

    Running User Services in the Services.msc module-user-services-how-8.png

    File Explorer

    The User Services can be found using File Explorer as .dll and .exe files.
    I made a list of these items and thier process names. All of them are located in the System32 folder.
    C:\WINDOWS\system32\

    Process Name (Object Name)
    Agent Activation Runtime Service (AarSvc.dll)
    Bluetooth User Support Service (Microsoft.Bluetooth.UserService.dll)
    Capture Service (CaptureService.dll)
    Clipboard User Service (CBDHSvc.dll)
    Connected Devices Platform User Service (CDPUserSvc.dll)
    Consent ConnectUX User Service (ConsentUxClient.dll)
    Credential Enrollment Manager (CredentialEnrollmentManager.exe)
    Device Association Broker (deviceaccess.dll)
    Device Picker (Windows.Devices.Picker.dll)
    Devices Flow (DevicesFlowBroker.dll)
    GameDVR and Broadcast User Service (bcastdvruserservice.dll)
    Messaging Service (MessagingService.dll)
    Pim Index Maintenance Service (UserDataAccessRes.dll)
    Print Workflow User Service (PrintWorkflowService.dll)
    Sync Host (APHostRes.dll) AKA: One Sync Service
    Udk User Service (windowsudk.shellcommon.dll) AKA: Undocked Dev Kit
    User Data Access (UserDataAccessRes.dll)
    Windows Push Notifications User Service (WpnUserService.dll)

    See screen shot 9 for a visual reference.

    Running User Services in the Services.msc module-user-services-how-9.png

    Once you've located the appropriate process in File Explorer you might want to modify or delete it.
    And you'll most likely get a "File Access Denied" message telling you that permission is required.
    See screen shot 10 for a visual reference.

    Running User Services in the Services.msc module-user-services-how-10.png

    You will need to double click the item and change permissions in the Security tab before deletion.

    Modify your Windows 10 OS at your own risk. I take no responsibility for you deleting or disabling critical system processes. This article was made to provide information on processes that are sparsely documented. I will edit this article as better information becomes available or if errors are found.
    Last edited by Sapien 1; 22 Jul 2022 at 20:51.
      My Computer


  2. Posts : 5,452
    Windows 11 Home
       #2

    Those names are randomized to prevent people form tampering. When you disable "DeviceFlowUserSvc" and then you will try to access Settings - Bluetooth and devices - it will crash. So be aware of consequences!
      My Computer


  3. Posts : 152
    Windows 10 Home
    Thread Starter
       #3

    TairikuOkami said:
    Those names are randomized to prevent people form tampering. When you disable "DeviceFlowUserSvc" and then you will try to access Settings - Bluetooth and devices - it will crash. So be aware of consequences!
    Okay, I think that I figured out this confusion and what you describe as what appears to be randomness. This actually isn't random. If you double click on the service you'll see the Service Name and the Display Name in the top of the Properties window. Most of the time the Display Name is the long and full worded name while the Service Name is a shortened and abbreviated version of that fully worded Display name. Normally, all of the other services that aren't in my list up there will always show the Display name in the Services.msc module. These ones however might either show the Display name or the Service name and that makes tracking them confusing if the names aren't similar. So, they actually aren't random services in this grouping but instead not always listed by their Display name. I will modify my first post here to show this information.

    Best example is OneSyncSvc_1d4b74c. You are familiar with OneSync and so when you see it in services you recognize it. But here in Services.msc OneSync_1d4b74c is the Service Name and the Display Name is Sync Host_1d4b74c. So, one time you login and its showing as OneSync and next time you log in its showing as Sync Host. Well, you are not familar with Sync Host so you might be inclined to assume its a new process that appeared randomly because other processes you saw before are not showing in the list and what is this Sync Host that wasn't there before? I can see how this can be confusing. Reality is these processes are not random but their Display name isn't locked in to always show like all of the other services that don't have the coded "_1d4b74c" glued to the end of them.

    :)

    - - - Updated - - -

    Okay, Im going to turn this page into a helpful article on how to change these mysterious services and include any information I can find so that this topic will be easy to understand because there is literally almost nothing about this even on Microsofts website and this makes windows users suspicious and frustrated wondering what these processes are doing.
      My Computer


  4. Posts : 1,767
    Windows 10 Pro (+ Windows 10 Home VMs for testing)
       #4

    Sapien 1 said:
    Okay, Im going to turn this page into a helpful article on how to change these mysterious services and include any information I can find so that this topic will be easy to understand because there is literally almost nothing about this even on Microsofts website and this makes windows users suspicious and frustrated wondering what these processes are doing.
    They aren't mysterious services. They're the result of gradually moving the management of some system-wide services to a per-user service model. What you are seeing is a parent service (known as the template service) spawning a temporary per-user service that can be managed without affecting the parent service.

    I agree with @TairikuOkami's opinion that this is to prevent tampering... most likely to prevent mass scripted attacks rather than tinkering by individual users. As a result the purpose appears to be general hardening of a potential attack vector... so nothing mysterious at all about them.

    (Microsoft has also gradually implemented other methods of preventing service tampering, for example from within the Services console, by adding an additional Security sub-key to several services and by adding Remediation services that regularly check registry settings for changes... but that, IMO, is mainly to prevent 3rd-party tools from affecting services like, for example, Windows Update.).

    To differentiate between the two (template and per-user), the per-user service name is the template name plus an underscore character and locally unique identifier (LUID) appended, e.g. AarSvc_1d4b74c (where _1d4b74c is the LUID). All per-user services share the same LUID, suggesting that the LUID is a random session identifer. To further differentiate, the template service has been removed from view in the Services console.

    This Microsoft document - Per-user services in Windows 10 and Windows Server - explains their function and rationale in much greater detail.

    It describes several methods of managing per-user services and provides a warning and reason why not to manage template services directly using the registry. It's not that you can't... but any mistake could render a device unable to start or boot to the desktop.

    It also describes a method of amending template services to disable per-user services from being spawned. I'm a little surprised that there's not a warning against this as well. (I haven't tried.)

    Hope this helps...
      My Computer


  5. Posts : 152
    Windows 10 Home
    Thread Starter
       #5

    RickC said:
    They aren't mysterious services. They're the result of gradually moving the management of some system-wide services to a per-user service model. What you are seeing is a parent service (known as the template service) spawning a temporary per-user service that can be managed without affecting the parent service.

    I agree with @TairikuOkami's opinion that this is to prevent tampering... most likely to prevent mass scripted attacks rather than tinkering by individual users. As a result the purpose appears to be general hardening of a potential attack vector... so nothing mysterious at all about them.
    Thank you. I couldn't find anything about this and didn't doubt Tairiku Okami but I knew that the correct terminology was outside of my knowledge.

    RickC said:
    This Microsoft document - Per-user services in Windows 10 and Windows Server - explains their function and rationale in much greater detail.

    It describes several methods of managing per-user services and provides a warning and reason why not to manage template services directly using the registry. It's not that you can't... but any mistake could render a device unable to start or boot to the desktop.

    It also describes a method of amending template services to disable per-user services from being spawned.
    That's great! Thanks for sharing this link. I am going to check it out.
    :)

    RickC said:
    To differentiate between the two (template and per-user), the per-user service name is the template name plus an underscore character and locally unique identifier (LUID) appended, e.g. AarSvc_1d4b74c (where _1d4b74c is the LUID). All per-user services share the same LUID, suggesting that the LUID is a random session identifer. To further differentiate, the template service has been removed from view in the Services console.
    And I imagine that where to find the template will be explained or referred to in the document you provided? This here, (LUID) is the keyword I was searching for.

    RickC said:
    I'm a little surprised that there's not a warning against this as well. (I haven't tried.)
    Hope this helps...
    Yes. This helps a lot. Thank you very much. I will incorporate all this new information onto my article and hopefully that too will be of use.
      My Computer


  6. Posts : 1,767
    Windows 10 Pro (+ Windows 10 Home VMs for testing)
       #6

    Sapien 1 said:
    And I imagine that where to find the template will be explained or referred to in the document you provided?
    'Template' is just used here as a description. Perhaps source service would have been better terminology but I've noticed that Microsoft often uses words outside of their well-known and accepted meanings... or just makes them up - like 'flighting' .

    However, the document does show the registry location of where the template services are stored.

    IMO it's a well-written document that provides a wealth of useful information. The only caveat is that it's obviously written primarily for enterprise use, i.e. managed environments.

    With that in mind, home users - especially those using Windows 10 Home rather than Windows 10 Pro editions - need to be very careful with Microsoft's constantly changing service management protection methods. After all, they're there to protect the OS from tampering and tinkering by us naughty end users who just won't leave things alone as Microsoft wants us to.

    The usual wise mantra of having backups/images applies as usual but even more so here where there is little option BUT to make any changes via the registry due to the visibility changes within the Services console (services.msc).

    Hope this helps...
    Last edited by RickC; 24 Jul 2022 at 04:29.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:45.
Find Us




Windows 10 Forums