By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,724 Members | 859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,724 IT Pros & Developers. It's quick & easy.

Change Username/Password for an existing Windows Service

P: n/a
Does anyone have any sample code on how to change a username/password for an
existing Windows service?

Thanks

Scott
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On windows XP, you can use the "sc" command line utility, such as:

sc config MyService obj= UserName password= newPassword

You can use Process.Start to run this command.
--
Scott Swigart
http://blog.swigartconsulting.com
"Scott Lezberg (Deltek)" <sl******@ma.deltek.com> wrote in message
news:O4**************@TK2MSFTNGP10.phx.gbl...
Does anyone have any sample code on how to change a username/password for
an existing Windows service?

Thanks

Scott

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.