DCOMCNFG without opening the

DCOMCNFG without opening the "Component Services" interface

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
DCOMCNFG without opening the "Component Services" interface Melinda 11-05-2007
Posted by =?Utf-8?B?TWVsaW5kYQ==?= on November 5, 2007, 4:08 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Hi,

I would like to know if it is possoble to configure the DCOM properties of
an application without opening the "Component Services" interface, by using
APIs in scripts or in command-line.

I would like to include the "Identity" and "Security" configuration of an
application in a MSI but I did not find how to do. (OS: Windows 2003 Server
and XP)

If it is not possible so I would automate the opening of the properties
windows of the given application in "Component services". (In order to avoid
to expand the folders and search for the application in the tree.)

I thank you in advance for your help.

Posted by Johannes Passing on November 7, 2007, 9:34 am
If you were  Registered and logged in, you could reply and use other advanced thread options
There is no API for such configuration, the information has to be
written to the registry. The keys and values are documented in [1]. Note
that a subset of these entries can also be set via the AppId table of an
MSI package.

--Johannes

[1] http://msdn2.microsoft.com/en-us/library/ms682359.aspx

Melinda wrote:
> Hi,
>
> I would like to know if it is possoble to configure the DCOM properties of
> an application without opening the "Component Services" interface, by using
> APIs in scripts or in command-line.
>
> I would like to include the "Identity" and "Security" configuration of an
> application in a MSI but I did not find how to do. (OS: Windows 2003 Server
> and XP)
>
> If it is not possible so I would automate the opening of the properties
> windows of the given application in "Component services". (In order to avoid
> to expand the folders and search for the application in the tree.)
>
> I thank you in advance for your help.


--
Johannes Passing - http://int3.de/

Posted by =?Utf-8?B?TWVsaW5kYQ==?= on November 7, 2007, 9:51 am
If you were  Registered and logged in, you could reply and use other advanced thread options
I have no problem with the RunAs property, but I need also to configure the
"AccesPermission" property, a binary value, and the password for the "RunAs"
identity.
I thank you, in advance, for your help,
Melinda

"Johannes Passing" wrote:

> There is no API for such configuration, the information has to be
> written to the registry. The keys and values are documented in [1]. Note
> that a subset of these entries can also be set via the AppId table of an
> MSI package.
>
> --Johannes
>
> [1] http://msdn2.microsoft.com/en-us/library/ms682359.aspx
>
> Melinda wrote:
> > Hi,
> >
> > I would like to know if it is possoble to configure the DCOM properties of
> > an application without opening the "Component Services" interface, by using
> > APIs in scripts or in command-line.
> >
> > I would like to include the "Identity" and "Security" configuration of an
> > application in a MSI but I did not find how to do. (OS: Windows 2003 Server
> > and XP)
> >
> > If it is not possible so I would automate the opening of the properties
> > windows of the given application in "Component services". (In order to avoid
> > to expand the folders and search for the application in the tree.)
> >
> > I thank you in advance for your help.
>
>
> --
> Johannes Passing - http://int3.de/
>

Posted by Johannes Passing on November 7, 2007, 11:42 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Regarding AccessPermission - first, for the ACL to be meaningful on the
target computer, it must be restricted to refer to builtin accounts only
as only these accounts habe the same SID on all machines.
Second, the format of the ACL blob is, to my knowledge, undocumented and
must be considered being subject to change - creating it on your machine
and copying it to the target machine may thus be brittle and it should
be preferred to assemble it on the target machine. However, the right
way to assemble the ACL blob is to use the COM object with CLSID
CLSID_DCOMAccessControl (implements IAccessControl).

The password is stored in the LSASS password stash - to set it, use
LsaStorePrivateData with a key SCM:.

--Johannes

Melinda wrote:
> I have no problem with the RunAs property, but I need also to configure the
> "AccesPermission" property, a binary value, and the password for the "RunAs"
> identity.
> I thank you, in advance, for your help,
> Melinda
>
> "Johannes Passing" wrote:
>
>> There is no API for such configuration, the information has to be
>> written to the registry. The keys and values are documented in [1]. Note
>> that a subset of these entries can also be set via the AppId table of an
>> MSI package.
>>
>> --Johannes
>>
>> [1] http://msdn2.microsoft.com/en-us/library/ms682359.aspx
>>
>> Melinda wrote:
>>> Hi,
>>>
>>> I would like to know if it is possoble to configure the DCOM properties of
>>> an application without opening the "Component Services" interface, by using
>>> APIs in scripts or in command-line.
>>>
>>> I would like to include the "Identity" and "Security" configuration of an
>>> application in a MSI but I did not find how to do. (OS: Windows 2003 Server
>>> and XP)
>>>
>>> If it is not possible so I would automate the opening of the properties
>>> windows of the given application in "Component services". (In order to avoid
>>> to expand the folders and search for the application in the tree.)
>>>
>>> I thank you in advance for your help.
>>
>> --
>> Johannes Passing - http://int3.de/
>>


--
Johannes Passing - http://int3.de/

Similar ThreadsPosted
Component Services Remote Shutdown Permissions November 9, 2005, 4:09 am
WSUS 3.0 How to localize the interface? May 25, 2007, 5:05 am
Security Center interface change? June 4, 2006, 1:20 pm
ANN: Smartcard component for VS.NET May 26, 2006, 9:31 am
MS06-020..which component is trying to patch? June 13, 2006, 12:03 pm
Critical Update - Windows Component October 8, 2008, 8:40 pm
Opening ports June 30, 2008, 11:28 am
Unasked files opening May 4, 2006, 6:16 am
Any danger by opening WMV files? May 11, 2006, 6:52 am
Problems with opening a file August 29, 2008, 12:24 pm

The site map in XML format XML site map

Contact Us | Privacy Policy