Solved

Stop and Start App Pool in IIS7 with batch

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Choppy program performance on Windows Server 2012 20 90
contractual requirements for app hosting 3 103
Bulk Reorder File Names 4 67
Cookies and new tab 3 37
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

770 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