Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / DistributedCOM Error 10016 in Windows: The Application-specific Permission Settings do not Grant Local Activation Permission

April 3, 2019 Windows 10Windows Server 2012 R2

DistributedCOM Error 10016 in Windows: The Application-specific Permission Settings do not Grant Local Activation Permission

In this post I’ll show you how to fix the error with the EventID 10016 from the DistributedCOM source on a computer running Windows 10 or Windows Server 2012 R2. The DCOM 10016 event is quite common in both client and server Windows versions, starting from Windows XP and you can fix this error in the same way regardless of the Windows version.

The problem shows itself as follows: the following error appears in the Windows Event Viewer in the System section when the computer boots or attempts to start or install some application:

Log Name: System
Source: DistributedCOM
Event ID: 10016
Level: Error
User: SYSTEM
Description: The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {000209FF-0000-0000-C000-000000000046} and APPID Unavailable to the user IIS APPPOOL\appIISPool SID (S-1-5-82-3351576649-1006875745-771203599-42452693-1279824824) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool.

Source: DistributedCOM Event ID: 10016 The machine-default permission settings do not grant Local Activation permission for the COM Server application

According to the error description: some user (for example, IIS Apppool) or a system (NT AUTHORITY\SYSTEM) tries to start some COM component using DCOM infrastructure and cannot do this due to the missing of the “Local Launch” or “Local Activation” permission. The error code contains only the codes of the classes for the COM component and the application. Let’s try to determine which particular application the identifier belongs to and grant the permissions that are necessary to successfully launch and activate it.

Copy the CLSID and APPID from the event description. In my case it is:

CLSID : {000209FF-0000-0000-C000-000000000046}
APPID: {AD65A69D-3831-40D7-9629-9B0B50A93843}

(in some cases, the application identifier may not be specified – APPID Unavailable).

Also note what permissions are missing (Local Activation permission) and for which account (NT AUTHORITY\SYSTEM or IIS APPPOOL\appIISPool SID — S-1-5-82-3351576649-1006875745-771203599-42452693-1279824824).

In each case the class, application, account identifiers, and access type may differ.
  1. Run the Registry Editor (regedit.exe);
  2. Go to the registry key corresponding to your CLSID. In my case it is HKEY_CLASSES_ROOT\CLSID\{000209FF-0000-0000-C000-000000000046};
    In some cases, you need to check also the registry key HKEY_CLASSES_ROOT\Wow6432Node\CLSID\. When you remotely connected to the registry, it will be located in the registry section HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID.
  3. In the class parameter the app name must be specified (in my case it is Microsoft Word Application);
    Most often the DCOM error 10016 occurs with the following components: Immersive Shell
    CLSID: {C2F03A33-21F5-47FA-B4BB-156362A2F239}
    APPID: {316CDED5-E4AE-4B15-9113-7055D84DCC97}
    RuntimeBroker
    CLSID: {D63B10C5-BB46-4990-A94F-E40B9D520160}
    APPID : {9CA88EE3-ACB7-47C8-AFC4-AB702511C276}
    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID - app name
  4. Right-click on the registry key and select Permissions; registry key permissions
  5. Click on the Advanced button; registry permissions advanced
  6. NT Service\TrustedInstaller or SYSTEM will be specified in the Owner section; change registry key owner
  7. Click the Change button and specify the name of your administrator account. Save the changes; select username to set owner on reg key
  8. Please note that the name of the current registry key owner has changed to your account. Check the box Replace owner on subcontainers and objects and click “OK”; registry: Replace owner on subcontainers and objects
  9. Add your administrator account to the permissions list and grant Full Control permissions to it; full control permissions on registry key
  10. You have granted the permissions to the registry key with CLSID. Now you need to repeat the previous steps and change ownership and permissions for administrator account on the registry key of your APPID from the error description (for example, HKEY_CLASSES_ROOT\AppID\{AD65A69D-3831-40D7-9629-9B0B50A93843};
  11. Now run the component management console (dcomcnfg) as administrator (Control Panel -> All Control Panel Items -> Administrative Tools -> Component Services); dcomcnfg run as administrator
  12. In the component console go to the section Component Services -> Computers -> My computer -> DCOM Config. In the COM component list find the name of the component that you defined in the second step (the value in the Application ID column must match your CLSID from the DCOM 10016 error description); COM component properties
    If you cannot find your component in the list, you probably use a 64-bit version of Windows, and the component you want to run is 32-bit one. In this case, you need to start the DCOM console using the command: mmc comexp.msc /32.
  13. Click the Security tab. All of the form controls to be accessible to change; dcom launch and activation permissions
    If you open the dcomcnfg console before changing permissions on the component registry key, all the settings on the Security tab will be locked (cannot be changed), despite the fact that you started the console as an administrator. can't change settings in the dcom security
  14. In my case, the application did not have the permission for Local Activation. In the Launch and Activation Permissions section, select Customize and click the Edit button;
  15. You need to add to the ACL an account that was specified in the error description. Depending on the text in the DCOM 10016 error, this could be SYSTEM, a specific user, or the account under which the IIS pool runs (in this case, you need to add access for the local IIS_IUSR group);
    If NT AUTHORITY\NETWORK SERVICE was specified in the initial error instead of NT AUTHORITY\SYSTEM, you must assign the local launch and activation permissions for the NetworkService account.
  16. Grant the necessary permissions for the account. For example, Local Launch = Allow and Local Activation = Allow.
  17. Restart the computer and check the event logs. The error DCOM 10016 should disappear.

1 comment
1
Facebook Twitter Google + Pinterest
previous post
How to Find Large Files on Your Computer Using PowerShell
next post
How to Remove Installed Updates in Windows 10 and Windows Server?

Related Reading

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

Installing Language Pack in Windows 10/11 with PowerShell

September 15, 2023

How to View and Change BIOS (UEFI) Settings...

September 13, 2023

1 comment

Vangelis October 9, 2019 - 5:27 pm

It works but not for all objects. Security options in “Immersive shell” with appID {316CDED5-E4AE-4B15-9113-7055D84DCC97}, are still grayed out, while I can edit the same options in other objects like “RuntimeBroker”.

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Booting Windows 7 / 10 from GPT Disk on BIOS (non-UEFI) systems
  • Removable USB Flash Drive as Local HDD in Windows 10 / 7
  • How to increase KMS current count (count is insufficient)
  • How to Disable UAC Prompt for Specific Applications in Windows 10?
  • How to Connect L2TP/IPSec VPN Server From Windows
  • Managing Printers and Drivers with PowerShell in Windows 10 / Server 2016
  • Managing Printers from the Command Prompt in Windows 10 / 8.1
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top