OK smart guys here is a question for you...
I want to automatically configure a DCOM Server 'run as" identity in code and bypass the need to use DCOMCNFG to do this. We have developed an DCOM Server that is part of an NT Server written in delphi. For reason that I don't want to get into now we need to configure this DCOM server to run as a particular person rather than the system account. We have a DCOM DLL that we got from MS called DCOMPerm which allow us to do this. However it doesn't appear to work when the DCOM Server is part of an NT Service. However, if we use DCOMCNFG we can in fact select a user to run this server as.
Again, for technical reasons both the NT Service and the DCOM Server object need to be configured to run as a user. We have several of these Services and want to do it as part of install.
Any ideas on how to do this????