Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft 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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

16 Experts available now in Live!

Get 1:1 Help Now