Link to home
Start Free TrialLog in
Avatar of humer2000
humer2000

asked on

IIS6.0 - what's the command line to restard a site ?

hi

i need the command line that restart a site/service under IIS 6

Avatar of Justin C
Justin C
Flag of United States of America image

net stop inetinfo
net start inetinfo

That will stop and start the IIS service.  For an individual site, you could find the PID of the worker process and do a net stop/start on it.

-BR  
Good try but not quite right.

If you stop inetinfo and then start inetinfo the w3svc (World Wide Web Publishing Service) will *not* be started and none of your sites will work.

To restart the web services on the machine from the command line use the 'iisreset' command.  This will stop all the web services and then restart them all.

There is no simple command line utility to stop/start a site, but you can determine which w3wp.exe process is serving which application pool by running 'iisapp'.  If you shut down the w3wp.exe serving an application pool any sites running in that app pool will be shut down until the next time a request comes in.

Dave Dietz
Avatar of humer2000
humer2000

ASKER

i need something new guys
i knwo already all what you wrote
i can't run iisapp because the application i am installing cannot do several thing
it must restart the specific site or kill it's pool process
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial