Solved

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

Posted on 2004-09-30
6
230 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
6 Comments
 
LVL 10

Expert Comment

by:BloodRed
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
0
 

Accepted Solution

by:
modulo earned 0 total points
Comment Utility
Closed, 500 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now