Hi All,
we have four app servers and 5 services are installed in each machine.
For every 60 days we need to change winodws domain users passwords, which
the services run.
Is there any way we can grab the service programatically and change service
logon credentials using C# utility?
I can loop through all services installed on the machine using the following
code.
foreach(ServiceController sc1 in ServiceController.GetServices())
{
MessageBox.Show(sc1.DisplayName.ToString());
}
But I don't know how to change service logon credentials.
Do you guys have any idea?
Thanks
Anil