• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1815
  • Last Modified:

Stop and Start App Pool in IIS7 with batch

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
davidthegnome20032
Asked:
davidthegnome20032
  • 2
  • 2
1 Solution
 
davidthegnome20032Author Commented:
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
 
Kyle AbrahamsSenior .Net DeveloperCommented:
from here:
http://technet.microsoft.com/en-us/library/cc732742%28WS.10%29.aspx

%systemroot%\system32\inetsrv\APPCMD stop apppool /apppool.name:DSS
0
 
Kyle AbrahamsSenior .Net DeveloperCommented:
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
 
davidthegnome20032Author Commented:
Was able to start and stop default web site

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now