Questions tagged [appcmd]

40 questions
0
votes
1 answer

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 tree view in IIS manager. Note, this is not a…
JohnCC
  • 292
  • 1
  • 6
  • 14
0
votes
0 answers

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 to array :: foreach SiteName in array appcmd.exe…
Michael
  • 173
  • 9
0
votes
1 answer

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 -section:webFarms /-"[name='mywebfarm']"…
0
votes
3 answers

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 am NOT trying to run IIS7 on Windows Server…
SaintNick
  • 111
  • 2
  • 9
0
votes
0 answers

Appcmd.exe: How to set config the virtual directory by using it parent path?

Using Appcmd.exe, I am trying to change the configuration of the virtual directory using its parent path "IIS://localhost/w3svc/5/ROOT/Site123" where, 5 - is the parent site ID, Site123 - is name of the virtual directory. Below is the cmd I have…
0
votes
1 answer

Use AppCmd.exe to delete a restricted IP address

I used the following syntax to add an IP address (10.0.0.1) to the restrited IIS 7.5 section for the whole server : appcmd.exe set config -section:system.webServer/security/ipSecurity /+[ipAddress='10.0.0.1',allowed='False'] /commit:apphost Very…
Francis
  • 1
  • 1
0
votes
0 answers

how can find list of the sites connecting to the app pool using appcmd.exe

I can see a list of site and list of app pool separately. but how can I find wich site using from the app pool. e.g: we have an app pool with name: app1 i want to send command to find how sites connecting to the app1.
User12
  • 69
  • 1
  • 7
0
votes
1 answer

how to get current physicalPath site using appcmd.exe

we want get current physicalPath of the site using appcmd.exe. how to identify physicalPath of site via site name or app pool name.
User12
  • 69
  • 1
  • 7
0
votes
1 answer

how can create a directory, in add site command using appcmd.exe?

When I am using the appcmd.exe for creating a website, I need a physical Path address in the command. How can I create directory when I am running this address: %systemroot%\system32\inetsrv\AppCmd.exe add site /name:websitename /id:4…
User12
  • 69
  • 1
  • 7
-2
votes
1 answer

How to make a change in iis apppool using appcmd.exe

I want to edit the parts marked in the photo using appcmd.exe or another comman-line method.
1 2
3