0

Does anyone have any ideas on how to read the MSDTC configuration on the current machine? I am specifically trying to check that the user has performed the following steps:

  1. Open Component Management (Start > All Programs > Administrative Tools > Component Services)

  2. Double-click on Component Services, then expand Computers. Right-click on My Computer and select Properties

  3. On the MSDTC tab, click the Security Configuration button, and configure the properties as follows:

  4. Network DTC Access: Checked

  5. Allow Remote Clients: Checked

  6. Allow Inbound: Checked

  7. Allow Outbound: Checked

  8. Incoming Caller Authentication Required: Selected

It's part of a small component I need to write to validate end-user configuration. I don't think I would attempt to fix it if it were wrong: just point the user at the help file - so only read only is needed.

4

2 回答 2

5

You can use the COM+ Administration classes/interfaces to do this. It will require COM interop though on your part.

The reference is located at:

http://msdn.microsoft.com/en-us/library/ms681189(VS.85).aspx

于 2009-01-05T18:57:58.287 回答
0

I'm not sure if you can do this programmatically from any API, or WMI. At least you can check the registry information at:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\Security
于 2009-01-05T12:31:34.760 回答