# Issue with getting DCOM APP permission via PowerShell and WMI call

**URL:** <https://forums.powershell.org/t/issue-with-getting-dcom-app-permission-via-powershell-and-wmi-call/6728>\
**Category:** PowerShell Help\
**Created:** [June 29, 2016, 1:45am UTC](https://forums.powershell.org/t/issue-with-getting-dcom-app-permission-via-powershell-and-wmi-call/6728 "2016-06-29T01:45:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![petr-poleshko](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@petr-poleshko](https://forums.powershell.org/u/petr-poleshko)\
**Post date:** [June 29, 2016, 1:45am UTC](https://forums.powershell.org/t/issue-with-getting-dcom-app-permission-via-powershell-and-wmi-call/6728/1 "2016-06-29T01:45:57Z")

</div>

Howdy,  
In DCOM there is an app called: **SMS Agent Host** with AppID: **{AD65A69D-3831-40D7-9629-9B0B50A93843}**  
I added new user **Domain\User** to the **Launch and Activation Permission** section with following settings:  
Local Launch = Allow  
Remote Launch = Deny  
Local Activation = Allow  
Remote Activation = Deny

I used this code below to get the current list of users who are configured with Allow and Deny permissions for this App:

```
(Get-WmiObject -Class Win32_DCOMApplicationSetting -Filter "AppId='{AD65A69D-3831-40D7-9629-9B0B50A93843}'" -EnableAllPrivileges).GetAccessSecurityDescriptor().Descriptor.DACL.Trustee.Name
```

And the problem is that i always receive a list without the user i added:

```
Administrators
SYSTEM
INTERACTIVE
LOCAL SERVICE
NETWORK SERVICE
TERMINAL SERVER USER
Administrators
SYSTEM
INTERACTIVE
NETWORK SERVICE
LOCAL SERVICE
TERMINAL SERVER USER
```

**The question is** : How can i get the FULL list of users who has any permissions for the DCOM APP in “Launch and Activation Permission” section?

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [June 30, 2016, 1:47pm UTC](https://forums.powershell.org/t/issue-with-getting-dcom-app-permission-via-powershell-and-wmi-call/6728/2 "2016-06-30T13:47:58Z")

</div>

GetLaunchSecurityDescriptor()?

---

<div class="post-metadata">

**Author:** ![petr-poleshko](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@petr-poleshko](https://forums.powershell.org/u/petr-poleshko)\
**Post date:** [July 1, 2016, 10:28am UTC](https://forums.powershell.org/t/issue-with-getting-dcom-app-permission-via-powershell-and-wmi-call/6728/3 "2016-07-01T10:28:08Z")

</div>

Hi,  
Greatest thanks ever 🙂 sometimes you can look through the code for hours but won’t notice a mistake 🙂

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:40pm UTC](https://forums.powershell.org/t/issue-with-getting-dcom-app-permission-via-powershell-and-wmi-call/6728/4 "2024-05-16T20:40:58Z")

</div>

Closed on May 16, 2024, 8:40pm UTC


