The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
76 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
0answers
42 views

Importing sites in IIS

I am trying to import iis websites from one server to another. I exported websites from 1st server & now trying to import it on 2nd server but after running below command ...
0
votes
0answers
56 views

How to use AppCmd on Windows Server for IIS with a site

I came across this ServerFault Article entitled show PHP error message on IIS 7, which was expanded a bit by Anton Staykov. I also searched a couple of other articles, such as this one by Microsoft. ...
0
votes
1answer
113 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
0answers
200 views

Cannot view IIS7 worker process queues with APPCMD or IIS Manager

I am trying to diagnose an issue with classic ASP sites that intermittently hang on IIS 7.5 (Windows 2008 R2). I tried using APPCMD LIST REQUESTS to get a list of queued requests but this fails every ...
0
votes
1answer
303 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 ...
2
votes
0answers
181 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
154 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 ...
2
votes
1answer
274 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
70 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
62 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
1k 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 ...
5
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
390 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
362 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
187 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
631 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
1k 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 ...
4
votes
3answers
4k 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 to refer to a remote server? So that every command I pass to AppCmd.exe would be executed in another ...
1
vote
1answer
6k 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
5k 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" ...
2
votes
2answers
3k 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 ...
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 ...
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 ...
2
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
6k 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 ...
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
8k 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
1k 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 ...