Solved

Stop and Start App Pool in IIS7 with batch

Posted on 2013-12-30
4
1,596 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Let’s list some of the technologies that enable smooth teleworking. 
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

860 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