Set a username and password for an existing service?

  • Thread starter Thread starter Scott Lezberg \(Deltek\)
  • Start date Start date
S

Scott Lezberg \(Deltek\)

How can I set a username and password for a service that already exists in
VB .NET?

Any sample code would be greatly appreciated.

Thanks in advance.

Scott
 
Jan. 10, 2005

You could use the Services tool in the operating system. After you
open the tool you could right click the service and click on the logon tab.
There you can specify the account and password. I think you are wanting to
know how to do it from within VS.Net, though. Assuming you haven't deployed
it yet, you could change the Account property in the installer class for the
service. If you change it to User, then when the end user runs InstallUtil,
it will ask for the account name and password in which to run the service
under. I hope this helps and makes sense! :)


Joseph MCAD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top