Scripting COM/DCOM User Identity

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?