Questions tagged [appcmd]
40 questions
10
votes
2 answers
Changing physical path on IIS through appcmd isn't activated
We have come across an issue on IIS 7.5 where we have a simple deploy system which consists of the following:
Create a zip-file of new webroot, consisting of three folders:
Api
Site
Manager
This is unzipped into a new folder (let's say we call it…
jishi
- 858
- 1
- 11
- 25
10
votes
3 answers
Is there a way to make my local AppCmd.exe to refer to a remote server?
I need to remotely administrate IIS via command-line. Is there a way to make my local AppCmd.exe refer to a remote server? So that every command I pass to AppCmd.exe would be executed in another machine?
andrerpena
- 345
- 2
- 3
- 11
7
votes
1 answer
appcmd has insufficient permissions to read redirection.config
I have this problem with my IIS7:
C:\Users\vtortola.dk>%windir%\system32\inetsrv\appcmd.exe list site
ERROR ( message:Configuration error
Filename: redirection.config
Line Number: 0
Description: Cannot read configuration file due to insufficient…
NullOrEmpty
- 379
- 2
- 5
- 16
5
votes
1 answer
Can't find IIS config file listed by appcmd
I'm managing a bunch of IIS 8.5 servers and I'm working on complying with security baselines.
My question is this: If I run a specific appcmd query on one of our IIS servers, I get the following:
C:\>appcmd list config…
Todd Wilcox
- 2,831
- 2
- 19
- 31
5
votes
2 answers
appcmd command to set anonymous authentication on a folder under a Web Application
I would like to run a command to set up anonymous authentication on a folder under a Web Application on IIS. I would like the particular folder to be the only thing affected. I don't want to change the anonymous authentication for the entire Web…
Lorem Ipsum
- 53
- 1
- 3
5
votes
2 answers
How can I get just the site name from the "AppCmd.exe list site" command?
If I run the following command on my server:
%windir%\system32\inetsrv\AppCmd.exe list site
I get this output:
SITE "MyCompany.MyProject.WebRole_IN_0_Web" (id:1273337555,bindings:https/555.555.555.555:443:,state:Started)
How can I get just the…
Tom Robinson
- 775
- 2
- 11
- 21
4
votes
1 answer
Use appcmd.exe to enable gzip compression on dynamic content on IIS 7.x
Every doc I can find discusses editing applicationHost.config in notepad to enable this.
The real need:
a) Via appcmd.exe or cmd line tool, enable dynamic compression to be configured in web.config (e.g. to set applicationHost.config ->…
Jonesome Reinstate Monica
- 5,347
- 9
- 54
- 80
4
votes
3 answers
AppCmd backup for IIS7 gives access denied error (hresult:80070005)
I have a script I have been using on another Windows 2008 to delete the IIS7 backup of configs and create a fresh one:
SET DEST=C:\Backup\Web\IIS7
SET BACKUPNAME=IIS7-CONFIGS
%windir%\system32\inetsrv\appcmd.exe delete backup…
TruMan1
- 425
- 2
- 9
- 18
3
votes
1 answer
How can I specify SSL certificate when running appcmd add site?
I can create a web site in IIS using e.g. the following command:
appcmd add site
-name:portallocal
-physicalPath:"C:\dev\projects\mysite"
-bindings:https/127.0.0.1:444:mysite.dev
But how can I also select an SSL certificate?
I'd like the…
Svish
- 6,627
- 14
- 37
- 45
3
votes
1 answer
What is the effect of stopping an AppPool on currently executing requests?
It is my understanding that asking an AppPool in IIS to recycle will give currently active requests 90 seconds to complete before they are abnormally terminated by the recycle request, while no longer accepting new requests. What about asking an…
ckittel
- 133
- 7
3
votes
1 answer
Why does scripting with appcmd behave differently than using IIS GUI?
I've scratched my head raw on this. Please help me stop the scratching.
We have a manual workaround for a site problem we're experiencing. The workaround always works when we do the steps manually, but running a script that does the same steps…
biscuit314
- 113
- 9
3
votes
2 answers
IIS 7 - change the allowDefinition attribute for a config section in machine.config
We have a situation where we need to explicitly limit the system.web/processModel/maxAppDomains = 1 for one website. The problem is that system.web/processModel can only be set at the machine.config level by default:
…
scripni
- 33
- 5
3
votes
2 answers
IIS7 appcmd list sites: is there a wildcard to filter on (for i.e. all bindings on port 443)?
In IIS7, is it possible to filter the results of the appcmd list sites command to, for example, all sites running on port 443?
For example:
/appcmd list sites /bindings:http://216.123.123.123:443:*wildcard
As it is, I can only filter on the exact…
Ted
- 248
- 2
- 5
- 16
3
votes
1 answer
AppCmd returns error: Object 'SET' is not supported
I am trying to set SSL Host Headers and Secure Site Bindings in IIS7. I followed the directions on this website http://www.digicert.com/ssl-support/ssl-host-headers-iis-7.htm (among others), but when I run the appcmd command mentioned, I get the…
RHPT
- 141
- 1
- 4
3
votes
2 answers
How can I get the list of app pool using appcmd.exe
we using the below command to get the list of the site added in is:
%systemroot%\system32\inetsrv\AppCmd.exe list sites
but the above command can not take a list of app pools related to the site.
I want a list of app pools. if a single command to…
User12
- 69
- 1
- 7