469,951 Members | 2,730 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,951 developers. It's quick & easy.

Change Username/Password for an existing Windows Service

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

Thanks

Scott
Nov 21 '05 #1
1 1741
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.

Similar topics

14 posts views Thread by Brent Burkart | last post: by
14 posts views Thread by Mr.KisS | last post: by
11 posts views Thread by Kirk | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.