Questions tagged [appcmd]

The command line utility for configuring IIS 7.

AppCmd.exe is the command line utility to access the configuration of Microsoft IIS 7.

180 questions
4
votes
3 answers

How do I create websites on remote servers using appcmd?

I have used appcmd to create websites on my local computer. There doesn't appear to be a server parameter which means that i have to remote desktop on to each machine that i'm deploying to and run the appcmd command. Also, can i use appcmd to deploy…
Al Polden
  • 890
  • 11
  • 25
4
votes
2 answers

How to restart iisnode?

We are using iisnode with IIS 7.5 on a Windows 2008R2 Server. The node.js app loads some config data when it starts. From time to time the config data changes and the app needs to be restarted. When restarting the IIS site instance by the Windows…
nitmws
  • 41
  • 1
  • 5
4
votes
1 answer

appcmd set config appSettings - value with plus (+) is being converting to space

I'm attempting to use appcmd to set an appSetting in web.config, the value for the appSetting contains a + symbol. When I run appcmd, the appSetting is created, but the + is converted to a space. the appcmd i'm…
4
votes
3 answers

Error when using appcmd to delete an application using IIS 7

I'm using appcmd to script a site I am deploying. At the start of this I am trying to remove some sites that are automatically installed by a vendor's site. They need to be removed because they are set up incorrectly putting to a non-existent part…
user3299213
  • 41
  • 1
  • 3
4
votes
2 answers

Unknown website after creating website using appcmd

I am using IIS 8.5 (Windows 8.1). I tried to create a website to my local IIS using the appcmd tool. I used those pages as reference (I know they are for IIS 7 but I couldn't find the equivalent for IIS 8): Create a Web Application (IIS 7) Create a…
Regis
  • 375
  • 4
  • 16
4
votes
1 answer

IIS AppCmd syntax for setting credentials for virtualDirectory

I'm using appcmd to create a new virtual directory in IIS8. The syntax for this is: appcmd add vdir /app.name: /path: /physicalPath: This works fine. Now I need to set some credentials; this is easy in the GUI (virtual…
Olle
  • 201
  • 6
  • 17
4
votes
1 answer

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 site as a virtual directory under default web site,…
George2
  • 44,761
  • 110
  • 317
  • 455
3
votes
2 answers

appcmd.exe to add/change mime type for a subdirectory of a website

I read from this link to add mime for IIS 7 appcmd set config /section:staticContent /+"[fileExtension=' .xyz ',mimeType=' application/octet-stream ']" But if I want to apply the mime settings only to a virtual directory , how to do it ? Thanks.
dan_l
  • 1,692
  • 2
  • 23
  • 40
3
votes
2 answers

list redirect destinations (URL) IIS sites

I have several redirect sites configured in IIS 8.5, and I want to list them all. I've tried: .\appcmd.exe list site * -section:system.webServer/httpRedirect but wildcards are not working fine with appcmd. I also tried from the WebAdministration…
Alexander Meise
  • 1,328
  • 2
  • 15
  • 31
3
votes
2 answers

appcmd.exe to overwrite a single site's entire xml config (applying the settings to a site that already exists)

I don't want to delete and recreate a site I just want to be able to apply the entire config to it and override any settings that are different. I backed up the site config with %windir%\system32\inetsrv\appcmd list site /config /xml >…
red888
  • 27,709
  • 55
  • 204
  • 392
3
votes
3 answers

Adding site and bindings (with Host Name, Port, and IP Address) to IIS with appcmd

I am trying to use appcmd.exe to add a website to IIS. I have almost everything working except one small bug. The line of code I am using is add site /name:WEBSITENAME /bindings:https://HOSTNAME:10.100.213.121:443…
Nick
  • 179
  • 4
  • 13
3
votes
1 answer

The identifier is not supported in the current command usage. You specified 'testname'

While trying to create an application pool via appcmd C:\Windows\System32\inetsrv>appcmd add apppool /name: testname /managedRuntimeVe rsion: -v4.0 /managedPipelineMode: -Integrated i get the folowing error The identifier is not supported in the…
OrElse
  • 9,709
  • 39
  • 140
  • 253
3
votes
3 answers

Recycle all apps pools in IIS by command line

I have a PowerShell script: & $psexec $serveraddr -u $remoteuser -p $remotepass -accepteula C:\Windows\System32\inetsrv\appcmd.exe list apppool /xml | C:\Windows\System32\inetsrv\appcmd.exe recycle apppool /in that I am using to recycle all IIS…
pbies
  • 666
  • 11
  • 28
3
votes
1 answer

How to display the physical path of a web application using appcmd.exe?

Please, observe: PS C:\Dayforce\DayforceRTQA\150520_747\SharpTop> $a C:\Program Files\IIS Express\appcmd.exe PS C:\Dayforce\DayforceRTQA\150520_747\SharpTop> &$a list app "MyDayforce/" /text:* APP path:"/" APP.NAME:"MyDayforce/" …
mark
  • 59,016
  • 79
  • 296
  • 580
3
votes
0 answers

How to setup IIS Express from a script the way Visual Studio does it?

When we configure a web application to run in IIS Express there are certain things VS does, like: Creating the application host configuration file in the IISExpress subfolder of the user documents folder. Creating a dedicated site section for each…
mark
  • 59,016
  • 79
  • 296
  • 580
1 2
3
11 12