show/hide this revision's text 2 edited tags
show/hide this revision's text 1

How to restart IIS on all servers of farm from SharePoint Application Page

SharePoint provides an option in Create New WebApplication page that says Restart IIS Automatically. This restarts IIS on all servers of the farm.

What can I do to trigger this programmatically from my Application Page (ASP.NET)?

Is there a timer job for this? Is there anything in the API? do I have to create "iisreset" process and pass it the name of servers?