Solved

Stop and Start App Pool in IIS7 with batch

Posted on 2013-12-30
4
1,546 Views
Last Modified: 2013-12-30
I am trying to use:
%windir%\system32\inetsrv\appcmd stop apppool /apppool.name: DSS

but get the error, The attribute "apppool.name" is not supported in the current command usage

Also I cannot stop the default web site with this:

%windir%\system32\inetsrv\appcmd stop "Default Web Site"
0
Comment
Question by:davidthegnome20032
  • 2
  • 2
4 Comments
 

Author Comment

by:davidthegnome20032
ID: 39746681
I fixed the stop start of app pools by removing the space after apppool.name:

Still cant get the web site to start and stop
0
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 total points
ID: 39746693
from here:
http://technet.microsoft.com/en-us/library/cc732742%28WS.10%29.aspx

%systemroot%\system32\inetsrv\APPCMD stop apppool /apppool.name:DSS
0
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 39746696
for a site:
from here: http://technet.microsoft.com/en-us/library/cc772137(v=ws.10).aspx

appcmd stop site /site.name:"Default Web Site"
0
 

Author Comment

by:davidthegnome20032
ID: 39746784
Was able to start and stop default web site

%windir%\system32\inetsrv\appcmd start site /site.name:"Default Web Site"
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

911 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

20 Experts available now in Live!

Get 1:1 Help Now