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
0
votes
1 answer

IIS 7 - Get id site variable batch script

I am deploying a website using TFS i have a batch script that encrypts web.config file at the moment i have the id of the site hardcoded in. QUESTION: How could i get the Website ID of the website that is being deployed and put it into the script…
AutoTester213
  • 2,714
  • 2
  • 24
  • 48
0
votes
0 answers

Issue calling appcmd from PsExec

The following command to create AppPools in IIS executes fine locally; "%windir%\system32\inetsrv\appcmd" add apppool /in < "webservice.apppools.2012.xml" When I try to run it remotely using PsExec it gives me an 'Invalid XML input' error. From…
apparch
  • 1
  • 2
0
votes
0 answers

Setting request filtering option in web.config

appcmd set config "Default Web Site" /section:system.webServer/security/requestfiltering /+fileExtensions.[fileextension='.asax',allowed='true'] I've found this appcmd that sets allowed extensions. Does anyone know how to modify this command so that…
Sharpey
  • 1
  • 1
0
votes
0 answers

configure FQDN site for iisexpress using appcmd

I want to be able to configure my applicationhost.config to include a FQDN for my site. I have a batch file to set this up as visual studio complains about it when it loads. This article says that running appcmd.exe set config…
undefined
  • 33,537
  • 22
  • 129
  • 198
0
votes
0 answers

chef-configure site in IIS

while executing the below cookbook to configure a site in IIS, chef-client --local-mode --runlist 'recipe[cookbooksample::web]' I am getting the error "cannot create a file when that file already exists" Ran C:\windows\system32\appcmd.exe…
user1648142
0
votes
2 answers

Appcmd from Bash script replacing backslashes with forward slashes, how to prevent?

I'm trying to run a Bash script which calls appcmd to add a site to IIS. #!/bin/bash windir=c:\\windows domain="$1" path="$2" #also tried using forward slashes by replacing backslashes #physicalPath=`echo "$path" | sed 's/\\\\/\//g'` #add…
Ropstah
  • 17,538
  • 24
  • 120
  • 194
0
votes
0 answers

Stopping/Starting FTP site in IIS via command prompt error

I use the batch file command: appcmd site stop "name" but when I use it on my FTP site in the IIS, it returns an error: < hresult:800710d8, message:Command execution failed. The object identifier does not represent a valid object. > my batch file…
beejm
  • 2,381
  • 1
  • 10
  • 19
0
votes
1 answer

Change IIS 7 application physical path programmatically

I want to change the physical path of an application running on my IIS 7 from another application that runs on my IIS . I tried to do this via appcmd.exe. However, this seems to be impossible due to lack of authorization from the asp.net…
0
votes
1 answer

Command for creating https binding for the Site with ANT

I want to execute this with ant (the command is working is if directly past in cmd) %windir%\system32\inetsrv\Appcmd set site /site.name:"Default Web Site" /+bindings.[protocol='https',bindingInformation='*:443:'] But it is not working. It seems…
doreto
  • 3
  • 5
0
votes
1 answer

Command to remove web.config entry

I am using below command to add an entry in Web.config C:\Windows\System32\inetsrv>appcmd set config "MarketWorkFlowWebApp" section:system.webServer/security/requestFiltering /allowDoubleEscaping:false Output : Applied configuration changes to…
Pavan Tiwari
  • 3,077
  • 3
  • 31
  • 71
0
votes
1 answer

Can appcmd modify a web.config to use redis for session?

Given the following iis web.config How would you change the values of
spuder
  • 17,437
  • 19
  • 87
  • 153
0
votes
1 answer

Create Virtual directory in IIS with Inno Setup

Hi I need a help to create a Virtual directory. I tried use these commands, but none works: [Run] Filename: "{cmd}"; parameters: "/C""net %systemroot%\system32\inetsrv\AppCmd add vdir /app.name: """"Default Web Site/"" /path:/SERVER1…
Robertopcn
  • 447
  • 1
  • 5
  • 15
0
votes
2 answers

IIS Bindings - Easiest Backup and Restore

I have a Windows 2008 R2 Server and I'm looking for the easiest method to backup the Bindings for the server. I have a whole ton of bindings for one particular IIS "website" and need to find a way to back those up and be able to restore them in case…
kirkhilles
  • 31
  • 4
0
votes
1 answer

How to set Custom Response Header to Virtual Directory of Application in IIS?

I have SMData Application in my Default Web Site. I have added attachments virtual directory to SMData application. Now I want set Content-Disposition header for attachment virtual directory. I tried this, but no success: SET XXXsiteNameXXX=Default…
bot_insane
  • 2,545
  • 18
  • 40
0
votes
1 answer

Configure appcmd to support utf8

I am using appcmd in order to list the websites by calling: appcmd.exe list config -section:system.applicationHost/sites As I have some web sites that have non-ascii characters in their name (in this case- Chinese), the result is that the Chinese…
Maoritzio
  • 1,142
  • 2
  • 13
  • 31
1 2 3
11
12