Restart IIS

132
Views
1
Answers

How Do I restart IIS in my machine?

edit | flag
William Patrick
Asked on: Dec 07, 2011 at 2:18AM

1 Answers

84
2
84

To Restart IIS:
You must be a member of the Administrators group on the local computer to perform the following procedure or procedures.
As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator.
At a command prompt, type

 runas /User:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

To restart IIS using IIS Manager

1.In IIS Manager, right click the local computer, point to All Tasks, then click Restart IIS.

2.In the What do you want IIS to do list, click Restart Internet Services on computername.

3.IIS attempts to stop all services before restarting. IIS waits up to five minutes for all services to stop. If the services cannot be stopped within five minutes, all IIS services are terminated, and IIS restarts. In addition, clicking End now forces all IIS services to stop immediately, and IIS is restarted.

Note:
If IIS is terminated before its services have stopped normally, data loss can result. If possible, back up your IIS configuration before restarting IIS. See Backing Up and Restoring the Metabase for information on backing up your IIS configuration.

To restart IIS using the IISReset command-line utility

You must be a member of the Administrators group on the local computer to run scripts and executables.
As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run your script or executable as an administrator.
At a command prompt, type

 runas /profile /User:MyComputer\Administrator cmd

to open a command window with administrator rights and then type

`cscript.exeScriptName`

(include the script's full path and any parameters).

1.From the Start menu, click Run.

2.In the Open box, type cmd, and click OK.

3.At the command prompt, type

`iisreset /noforce computername` 

and press ENTER.

4.IIS attempts to stop all services before restarting. The IISReset command-line utility waits up to one minute for all services to stop. If the services cannot be stopped within one minute, all IIS services are terminated, and IIS restarts.

edit | flag
Gokul A
Answered on: Dec 07, 2011 at 2:31AM

Post your Answer

Search

Welcome to Ask Amoeba!
This is 100% free and interactive site for sharing professional Questions and Answers, Opensource projects, Interview questions.
Learners, beginners, Experts stop and share your knowledge and ideas!

Browse Categories

Browse Tags