S Scott Lezberg \(Deltek\) Nov 28, 2004 #1 Does anyone have any sample code on how to change a username/password for an existing Windows service? Thanks Scott
Does anyone have any sample code on how to change a username/password for an existing Windows service? Thanks Scott
S Scott Swigart Nov 28, 2004 #2 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.
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.