Hello,
you want to programmatically create a COM+ application and set it's identity
to Network Service, do I understand you correct?
The way to go here is the COMAdmin interface, which can be reached via COM
Interop (See the ICOMAdminCatalog interface) and google around.
Once you have created the application, set it's identity to NT
Authority\NetworkService and leave the password empty. That should do the
trick.
Given the application catalog in variable apps and your COM+ application in
variable app, this should work:
app.set_Value("Identity", "NT Authority\NetworkService");
apps.SaveChanges
Kind regards,
Henning Krause
[quoted text, click to view] "coconet" <coconet@community.nospam> wrote in message
news:47rkv35u3ukj9n42nccmv5lpr64unskamh@4ax.com...
>
> Thanks, but actually I am installing credentials in a COM+ application
> (ServicedComponent) and want to set it that way. What to do?
>
>
> On Mon, 7 Apr 2008 12:12:48 -0500, "Joe Kaplan"
> <joseph.e.kaplan@removethis.accenture.com> wrote:
>
>>If you install the service with the ServiceProcessInstaller class, you can
>>set the Account property to use ServiceAccount.NetworkService. That is
>>probably what you should be doing. If you deploy the service with another
>>technology besides the .NET "installer" class approach (like a traditional
>>MSI or something), then you can also do this during the deployment with
>>those other technologies.
>>
>>Joe K.
>>--
>>Joe Kaplan-MS MVP Directory Services Programming
>>Co-author of "The .NET Developer's Guide to Directory Services
>>Programming"
>>
http://www.directoryprogramming.net >
That's great, exactly what I needed. For some reason creating a new
user account on Vista (x64) is buggy with DirectoryEntry, but this is
what I need.
I also need to set the Image Dump Directory to something and enable
dump on application fault, have you seen a way to do that?
Thanks.
On Mon, 7 Apr 2008 23:01:58 +0200, "Henning Krause [MVP - Exchange]"
[quoted text, click to view] <newsgroups_remove@this.infinitec.de> wrote:
>Hello,
>
>you want to programmatically create a COM+ application and set it's identity
>to Network Service, do I understand you correct?
>
[snip]