Solved

Stop and Start App Pool in IIS7 with batch

Posted on 2013-12-30
4
1,620 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
This video demonstrates basic masking and how to edit the mask to reveal the desired image.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

733 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