The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
24 views

Remove IIS configuration setting using AppCmd without clearing the entire section

I am using the following appcmd to add an autoStartProvider to the list of autoStartProviders: appcmd.exe set config -section:system.applicationHost/serviceAutoStartProviders /+"[name='MyAutoStartup',...
0
votes
0answers
31 views

When removing bindings on IIS, appcmd returns ok but bindings are not removed

I have this wierd problem running this automated script that removes bindings at a certain point. The log: Executing external process: C:\Windows\system32\inetsrv\appcmd.exe Parameters: set site /...
0
votes
0answers
80 views

Use appcmd.exe to enable/disable URL Rewrite rule in IIS

I am trying to create a .bat file to quickly switch my IIS to "Maintenance mode". I have create a URL Rewrite rule to return a 503 error code, by default the rule is not enabled, however I would like ...
0
votes
1answer
17 views

Conditionals in cmd scripts

I'm doing scripting using appcmd. What I'd like to do is check to see if a given site exists and if does perform an action. In this case, delete it. appcmd list app | find "mySite" So, if the find ...
2
votes
1answer
128 views

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 ...
0
votes
1answer
271 views

Add a PHP Handler to a website or even a folder only via AppCmd

I am trying to automatically deploy an IIS webserver (currently 8.5, will need to work it out all the way down to 7.5 as well), using AppCmd.exe I am using PHP's FastCGI to handle requests. I have ...
0
votes
1answer
407 views

Change an IISExpress site's physicalPath on the command line

What's the easiest way to accomplish this? I see there's lots of examples for appcmd relating to IIS proper, and using powershell for same, but I can't see an API of sorts for reconfiguring the ...
3
votes
1answer
315 views

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 (...
1
vote
0answers
215 views

Start/Stop IIS site automated as an administrator, which is not a built-in “Administrator”

There are several ways to start/stop an IIS site, in a way that does not require logon to the system. For example: 1) Command line via APPCMD: C:\windows\system32\inetsrv\appcmd.exe stop site /site....
2
votes
1answer
357 views

PsExec hangs intermittently when calling AppCmd

We have an automated deployment process which is primarily managed by a batch file. One of the first steps in that process is to stop an IIS AppPool so the updated files can be safely copied. To do ...
0
votes
1answer
149 views

IIS applications appear in appcmd but not in IIS manager tree view

I have some web servers running Windows Server 2008 Std with IIS 7. I've noticed a strange thing about the configuration. I see some Apps and Virtual Directories in appcmd that don't show up in the ...
0
votes
0answers
76 views

Filter AppCmd to running sites

I have a script that uses appcmd to find sites using a particular vdir and iterates through them to find which ones are currently running appcmd.exe list vdir /physicalPath:Z:\My\Path :: save sites ...
5
votes
2answers
2k views

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 ...
6
votes
2answers
2k views

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 ...
3
votes
2answers
523 views

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 ...
2
votes
1answer
507 views

APPCMD syntax issue

I am trying to setup recycling logging events, using the following: appcmd set config /section:applicationPools /[name=' AppPoolName '].recycling.logEventOnRecycle:time But I am getting this ...
1
vote
2answers
214 views

Is there a way to generate appcmd invocations from IIS Server Manager?

I find the appcmd CLI inscrutable, and so will often do more esoteric operations once locally in the server-manager, then look at the various changes to the config files that happen so I can perform ...
0
votes
1answer
755 views

IIS - How to use appcmd to add cache control rules to ARR?

We are using IIS/ARR to act as a reverse proxy which is deployed on Windows Azure, as part of the role startup a CMD file runs which handles all of the configuration. eg: %appcmd% set config -...
1
vote
1answer
2k views

IIS7/appcmd - importing httpError configuration gives an error

In an effort to try and take the pointy-clickyness out of configuring IIS for our application, I've been looking at appcmd. Specifically it's ability to export config trees and reapply them with ...
9
votes
3answers
5k views

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 ...
1
vote
2answers
9k views

Anonymous Authentication <anonymousAuthentication> / 403 - Forbidden: Access is denied

I am using windows server 2008 R2 and IIS 7.5 I deployed my app to that server for the first time and I got the following error; 403 - Forbidden: Access is denied. You do not have permission ...
1
vote
2answers
8k views

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....
2
votes
2answers
4k views

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:*...
1
vote
1answer
1k views

How do I elevate privileges when running appcmd from a nant task?

We are using a Windows 7 box as build server. As part of our continuous integration process I would like to stop and start an IIS 7 website. I have tried doing this from the command line using appcmd:...
1
vote
1answer
2k views

How can I delete a URL rewrite rule in IIS7 from the command prompt if it's got spaces in the name?

The appcmd help is a little vague and I can't seem to figure out the proper escape or quoting sequence. appcmd set config -section:defaultDocument /-files.[value='main.html'] Remove a ...
3
votes
1answer
1k views

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 ...
3
votes
2answers
7k views

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\...
0
votes
3answers
2k views

Is it possible to run APPCMD from Server 2003?

In our transitory migration situation, I have the need to run APPCMD from a Windows Server 2003 machine, but of course targeting an IIS7 instance on a remote Windows Server 2008. Is it possible? (I ...
0
votes
1answer
9k views

IIS appcmd on Windows Server 2003?

For IIS 7.0 on Windows Server 2003, any tools like appcmd for IIS 7.0 with Windows Server 2008? I did not find such command on Windows Server 2003. thanks in advance, George
1
vote
1answer
2k views

using appcmd to add new web site issue

I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0. I want to using appcmd to add a new web site, my scenario is like this. All my web site files are under folder c:\template; I want to add my new web ...