# Scripting COM/DCOM User Identity

**URL:** <https://forums.powershell.org/t/scripting-com-dcom-user-identity/1497>\
**Category:** PowerShell Help\
**Created:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/scripting-com-dcom-user-identity/1497 "2011-12-31T18:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![archives](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@archives](https://forums.powershell.org/u/archives)\
**Post date:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/scripting-com-dcom-user-identity/1497/1 "2011-12-31T18:30:00Z")

</div>

by Jerame at 2012-11-13 14:12:20

> We have an application that runs on mulitple servers, and when we upgrade the application we have to change the Identity field for a COM+, and a DCOM componet , as well as a service, so that it runs as a service account (MyDomain\ServiceAccount).   
>   
> I have found Richard Siddaway’s example for setting the Service to run under the Service Account, but am not finding any samples (at least that I can decipher) for setting the COM+ and DCOM settings. I know their names, so I’m hoping its just a matter of figuring out how to call the set method for them.   
>   
> Can someone steer me in the right direction?  
>   
> TIA,  
> Jerame

by DonJ at 2012-11-15 04:19:52

> I’m not certain that what you’re after is exposed in a way you can automate like this. Keep in mind that everything in PowerShell is .NET; there’s a pretty minimal support for older COM/DCOM configuration settings.

by RichardSiddaway at 2012-11-30 02:45:22

> Not sure this can be done in the way you want. Is this information in the registry?

---

<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, 9:02pm UTC](https://forums.powershell.org/t/scripting-com-dcom-user-identity/1497/2 "2024-05-16T21:02:24Z")

</div>


