Reading MSDTC configuration

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

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

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

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

  • DTC Network Access: Tested

  • Allow Remote Clients: Checked

  • Allow Incoming: Verified

  • Allow outgoing: checked

  • Incoming Caller Authentication Required: Selected

This is part of a small component that I need to write to validate the end user configuration. I don’t think I’ll try to fix it if it was wrong: just specify the user in the help file - so read-only is needed.

0


source to share


2 answers


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

      

0


source


You can use COM + administration classes / interfaces for this. This will require COM interoperability on your part though.

The link is at:



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

+5


source







All Articles