Hi Folks,
I am using the ServiceController class to remotely shutdown IIS from a C# Assembly. I was wondering what is the least level of privlidges I need to do this over the network, in my current testing I am using Administrator and it works fine, but when I migrate thru to Production I will be using an AD group and need to give it the correct level of security?
// Make a call to IIS to shutdown the service.
ServiceController sc = new ServiceController(serviceName, serverName);
//Can we stop the service
if (sc.CanStop)
{
//Stop it
sc.Stop();
}
Cheers, Conor