|
|
|
Restart IIS, ASP JScript
1
This ASP JScript code is designed for restarting IIS. Sufficient right should be grant to the page containning the code. Detail please visitRestarting IIS
<script language="JScript" runat="server">
try{
var fullPath = "IIS://localhost/W3svc/1",
oServer = GetObject(fullPath);
Response.write("Restarting web server in progress.<br/>");
Response.write(" Please connect later!");
oServer.Stop();
oServer.Start();
}catch(e){
Response.write("Can't stop web server");
}
</script>




There are currently no comments for this snippet.