Solved

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

Posted on 2004-09-30
6
235 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

687 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