Re: Programatically Use NetworkService User?
- From: "Henning Krause [MVP - Exchange]" <newsgroups_remove@xxxxxxxxxxxxxxxxx>
- Date: Mon, 7 Apr 2008 23:01:58 +0200
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
"coconet" <coconet@xxxxxxxxxxxxxxxx> wrote in message news:47rkv35u3ukj9n42nccmv5lpr64unskamh@xxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxxx> 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
.
- Follow-Ups:
- Re: Programatically Use NetworkService User?
- From: coconet
- Re: Programatically Use NetworkService User?
- References:
- Programatically Use NetworkService User?
- From: coconet
- Re: Programatically Use NetworkService User?
- From: Joe Kaplan
- Re: Programatically Use NetworkService User?
- From: coconet
- Programatically Use NetworkService User?
- Prev by Date: where to ask asp.net questions
- Next by Date: Re: where to ask asp.net questions
- Previous by thread: Re: Programatically Use NetworkService User?
- Next by thread: Re: Programatically Use NetworkService User?
- Index(es):
Relevant Pages
|
|