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
57
votes
9 answers

How to assign a SSL Certificate to IIS7 Site from Command Prompt

Can you advise me whether it is possible or not to assign a SSL Certificate to a website in IIS7 using the APPCMD application? I am familiar with the command to set the HTTPS Binding appcmd set site /site.name:"A Site"…
David Christiansen
  • 5,869
  • 2
  • 36
  • 42
40
votes
5 answers

How do I change the physical path of web site in IIS7 with APPCMD?

I need to change the physical path of a web site through the command line via the appcmd.exe tool, but I can't figure out the syntax. Can someone help?
Paul Gordon
  • 2,532
  • 3
  • 26
  • 24
33
votes
5 answers

Renaming applications in IIS 7.0

It's generally known that you are not allowed to edit the application alias while editing application settings through window interface of IIS Manager. The alias of an application has the gray color (not admitted to change). But in this article you…
troublemaker
  • 331
  • 1
  • 3
  • 3
33
votes
7 answers

The term 'appcmd' is not recognized as the name of a cmdlet

I'm getting the following error message: The term 'appcmd' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try…
user3874995
  • 331
  • 1
  • 3
  • 3
27
votes
3 answers

Associate an application pool to site with appcmd

I want create a site by command line using appcmd. How can I associate a specific application pool to site? To create a site, I write in this way: appcmd add site /name:"prova" bindings:http://localhost:8080 /physicalPath:c:\sites\prova
JAEP
  • 363
  • 2
  • 5
  • 12
25
votes
5 answers

How to find IIS7 SiteID using site name on Windows 2008 using appcmd or other util?

I am trying to find an IIS7 site ID using site name using appcmd or other utility but have not found any way to achieve it.
anil
  • 961
  • 1
  • 11
  • 23
23
votes
1 answer

How to create an application pool with appcmd?

I have figured out I could associate an existing application pool with an existing site like this: APPCMD.exe set app "sitename/" /applicationPool:"appPoolName" But how do I create my own application pool with the name appPoolName, .NET version 4…
Houman
  • 64,245
  • 87
  • 278
  • 460
18
votes
3 answers

Setting IIS config via appcmd.exe for Load User Profile

I am attempting to set the config setting for 'Load User Profile' to true via a powershell script using appcmd.exe. After reading through many documents I cannot figure out the correct syntax. The app pool's name is like…
Steve
  • 1,557
  • 2
  • 17
  • 34
16
votes
4 answers

Azure Appcmd startup task, setting preloadEnabled for ALL sites

Okay, so I'm basically in the process of implementing azure warmups using the new IIS 8.0 Application Initialization module. I've got a startup task (cmd file) that basically already cancels out the idle timeout in IIS and the recycling time. I'm…
Mathew Thompson
  • 55,877
  • 15
  • 127
  • 148
15
votes
3 answers

How do you change the allowDefinition section attribute using appcmd in IIS 7?

Is it possible to use appcmd to change the value of allowDefinition? Specifically I'm try to enable changes to the httpCompression module at the application level. Modifying the applicationHost.config by manually changing the following…
Edward Wilde
  • 25,967
  • 8
  • 55
  • 64
15
votes
1 answer

Determining if a Powershell command was successful

Hi I am quite new to Powershell but I have one niggling question. I want to be able to tell if a command has completed successfully so I can give meaningful messages to host. I am using the appcmd command to add a binding in IIS. Essentially that…
baron
  • 11,011
  • 20
  • 54
  • 88
13
votes
6 answers

Error using appcmd to add ssl binding

I want to add a binding to a site using appcmd. But when I try the following command I get an error: appcmd set site /site.name:"My site name" /+bindings.[protocol='https',bindingInformation='*:443:sub.mydomain.com'] The error: ERROR (…
Jeroen
  • 307
  • 1
  • 6
  • 17
13
votes
2 answers

Stop a web site hosted with IIS Express from command line

I'm working on a web solution in Visual Studio 2010 that is using IIS Express to host the application. I want the build process to copy the output DLLs from some of the projects into a directory under the main web app. There is a watch on this…
jrockers
  • 525
  • 1
  • 4
  • 12
11
votes
4 answers

Run Command as administrator in PowerShell script. UAC

OK here is my issue: I am trying to run a script remotely on a server. I am an administrator on both boxes, firewall exceptions are in place, remote admin is enabled, and everything else looks good that i can see. invoke-command -ComputerName…
Tim
  • 211
  • 1
  • 2
  • 7
10
votes
2 answers

change physical path for virtual directory or site in IIS using command line for IIs6 or IIs7

I need to implement some versioning for deployment for the app I support where I can copy the site to say c:\inetpub\wwwroot\app_v2 and then switch the virtual directory from c:\inetpub\wwwroot\app_v1. Is there a way to change the physical path for…
MikeJ
  • 14,430
  • 21
  • 71
  • 87
1
2 3
11 12