Solved

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

Posted on 2004-09-30
6
234 Views
Last Modified: 2012-08-13
hi

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

0
Comment
Question by:humer2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 10

Expert Comment

by:BloodRed
ID: 12192323
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  
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 12192841
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
0
 
LVL 1

Author Comment

by:humer2000
ID: 12193439
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
0
 
LVL 1

Author Comment

by:humer2000
ID: 12888131
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12902813
Closed, 500 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question