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
8
votes
2 answers

IISExpress application pool recycle

Is there a way to recycle IIS Express application pool? If I open cmd and go to C:\Program Files\IIS Express, then run: appcmd apppool /? the list of commands lacks the "recycle" option. The only workaround I've found is to edit the…
liorafar
  • 2,264
  • 4
  • 19
  • 39
8
votes
1 answer

How do I get the appcmd? Windows 10

How do I get the appcmd to write commands? Using Windows 10. Getting this error: 'appcmd' is not recognized as an internal or external command, operable program or batch file. Also, if I have used this command: appcmd delete site "Default Web…
Malin
  • 169
  • 1
  • 3
  • 6
8
votes
2 answers

IIS application pool identity account passwords shown in clear text

When I use the appcmd list appool /text:* command, it shows me the application pool identity passwords in clear text. I am able to view the passwords in clear text using Get-WMIObject in PowerShell as well. This can be a…
Hardik
  • 101
  • 1
  • 1
  • 3
8
votes
4 answers

Creating IIS7 web application using PowerShell with Require SSL set to "Require"

I'm creating an IIS web site using PowerShell's New-WebSite cmdlet, and within that a web application using New-WebApplication. The SSL settings for the web application need to be set to Require SSL; Require as shown below. For consistency, I would…
Richard Ev
  • 52,939
  • 59
  • 191
  • 278
8
votes
5 answers

How to make startup tasks idempotent?

I have a number of startup tasks in batch files. In particular I call IIS's appcmd.exe to configure IIS. Startup tasks in Azure are supposed to idempotent (ie, able to be run repeatedly with the same results), in case the role is restarted for some…
Brian Reischl
  • 7,216
  • 2
  • 35
  • 46
7
votes
1 answer

Adding Website and FTP into IIS 7 via script

We are in the process of moving over 100 domains over to a new server. I have created a script that will allow adding a Website entry and FTP entry into IIS 7 using a simple BAT file. I found several tutorials using AppCmd ADD SITE which works very…
Ravi Ram
  • 24,078
  • 21
  • 82
  • 113
7
votes
2 answers

How to set environment variables per site on IIS using appcmd.exe?

It is very easy to set environment variables per site on IIS Manager: I looking for a way to do it using appcmd.exe so I can include this in my install script. The closest I got was this: C:\>C:\Windows\System32\inetsrv\appcmd.exe set config…
andrecarlucci
  • 5,927
  • 7
  • 52
  • 58
7
votes
3 answers

How to use AppCMD to test and see if a website exists in IIS7 using the Site's Name?

I would like to add new bindings to a site using appcmd but I need to see if it exists first. How can I do so using AppCMD? Much appreciated!
Julian Dormon
  • 1,767
  • 4
  • 32
  • 58
6
votes
1 answer

Updating aspnet.config on Azure Web Role

I have a SignalR solution that is deployed to an Azure Web Role (cloud service, not Azure Web Site) and in order to ensure we can maximise the number of connections to each instance I need to make some changes various ASP.NET settings as detailed in…
Ben
  • 376
  • 1
  • 6
6
votes
1 answer

APPCMD how to test if binding exists before I add it to a website?

We use appcmd in our deployment scripts to setup servers , I need to ensure that adding bindings to existing sites doesn't throw an error C:\Windows\System32\inetsrv\appcmd.exe set site /site.name:"abc.com" /+bindings. …
MikeW
  • 4,749
  • 9
  • 42
  • 83
6
votes
1 answer

How to run appCmd in PowerShell to add custom headers to the Default Web Site

Please help me figure out how to properly escape the arguments so they work when calling appcmd inside of powershell. My script looks like this: $defaultWebSite = "Default Web Site" $appCmd = "C:\windows\system32\inetsrv\appcmd.exe" $addHeaderP3P =…
Robert Bratton
  • 435
  • 1
  • 5
  • 12
5
votes
2 answers

How to loop in powershell until successful?

%WINDIR%\system32\inetsrv\appcmd.exe set site /site.name:"WebRole_IN_0_CB" /[Path='/'].applicationPool:"ASP.NET v4.0" >>CBLog.log powershell.exe -command Set-ExecutionPolicy Unrestricted powershell.exe .\CheckIfSuccessful.ps1 I would like to run…
Houman
  • 64,245
  • 87
  • 278
  • 460
5
votes
2 answers

How to use appcmd.exe to add a new binding for HTTPS

I have the following script that sets up my website... %AppCmd% ADD SITE /name:%SiteName% /physicalPath:%SitePath% /bindings:http/*:80:%SiteName% %AppCmd% SET SITE /site.name:%SiteName% /[path='/'].applicationPool:%SiteName% What I would like to do…
Remotec
  • 10,304
  • 25
  • 105
  • 147
4
votes
1 answer

VSTS release errors on "IIS Web App Manage" step with AppCmd "Not enough storage is available to process this command."

Have a simple two-step release definition in Visual Studio Team Services / VSTS based on the "IIS Website Deployment" template set to configure an application pool (v4, integrated, application pool identity) and website (http, 192.168.0.xxx LAN IP,…
Tony W
  • 95
  • 1
  • 9
4
votes
0 answers

Malformed Collection Error

Moving on from the first issue I reported here : Running an OS command using apache-ant to IIS config I am trying to run the second part of the IIS config.
dazednconfused
  • 141
  • 1
  • 5
  • 16
1
2
3
11 12