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

Why does the page posts take so long?

I am having some problems with some page post backs that take a loooong time to execute. If I do a "appcmd list requests" I can get something like this: REQUEST "79000001800004e3" (url:POST /dir/file.aspx, time:87219 msec, client:xxx.xxx.xxx.xxx,…
Olle
  • 43
  • 1
  • 4
0
votes
1 answer

Chef IIS cookbook - how do you point an application at a new directory?

I'm trying to repoint an IIS application at a different directory on disk. The iis_app chef resource does not appear to support such an action. I know how to do it in Powershell but the IIS cookbook leverages appcmd. So I've reverted to appcmd and…
0
votes
0 answers

some powershell commands work from C# ... others won't

I created a powershell script: mkdir C:\kevin\mySite.com mkdir C:\kevin\mySite.com\stylesheets mkdir C:\kevin\mySite.com\slideshows mkdir C:\kevin\mySite.com\images mkdir C:\kevin\mySite.com\file mkdir…
clarence_odbody
  • 185
  • 2
  • 16
0
votes
1 answer

MIME Type not working when added with appcmd

When I add a MIME type to IIS 7 via the following code with appcmd, it shows up in the list but doesn't work. appcmd set config /section:staticContent /+"[fileExtension='.mp4 ',mimeType='video/mp4']" If I add it via the IIS GUI it works as expected.…
Earl
  • 283
  • 2
  • 7
  • 14
0
votes
1 answer

Appcmd command not working

appcmd set config /section:applicationPools /[name='xxx - yyy'].processModel.idleTimeout:0.00:00:00 When I run this command, instead of receiving a validation message or an error message, the command goes "idle". It actually just display the caret…
Serge
  • 6,554
  • 5
  • 30
  • 56
0
votes
1 answer

Set password on virtual directory in IIS Express with AppCmd

I have a vdir with a physicalPath that points to a file share. Setting the "userName" and "password" attributes to a user with access to that share in the vdir config section in applicationhost.config works fine, but the password is then in clear…
Tormod Hystad
  • 2,345
  • 1
  • 19
  • 15
0
votes
1 answer

Appcmd script that will monitor IIS app pools and send email if application pools is stopped

I am looking for a script with appcmd, that will monitor the IIS application pools and we can also get email notifications when some apppools are crashed. We want to put the script as a scheduler task.
user1655702
  • 21
  • 2
  • 3
0
votes
2 answers

How to revert-to-parent handler mappings for an application on IIS 7 (or higher) by code?

It is possible to revert handler mappings for an application to parent manually by following below steps: Select Application on IIS management console Double click Handler Mappings Clik Revert to Parent on the Actions pane Is there a way achieve…
Namik Acayir
  • 73
  • 2
  • 6
0
votes
1 answer

How start site to browse through appcmd.exe?

How start site to browse through appcmd.exe? How know site url through appcmd.exe? Upd: My site have name to iis: Default Web Site, but at start on brawse have address ht_tp://localhost/Site. How me define name "localhost"? Comm. "start" to appcmd…
0
votes
1 answer

Add IP programmatically to ipv4 and domain restriction

Anybody know how to programmatically add an IP address to "IPv4 and domain restrictions" in IIS7 using vb.net. i.e I want to exclude some ips or range of IPs from accessing certain folders on my server and allow certain users to access it. I found…
Dan
  • 343
  • 3
  • 9
  • 21
0
votes
1 answer

How to enable/Disable Forms Authentication in IIS

I am building a setup package using the WIX tool. I have a requirement for enabling/disabling Forms Authentication for a particular virtual directory in IIS based on the user requirement. I have tried appcmd command but could not get it to…
Vinay Kumar
  • 33
  • 1
  • 7
0
votes
3 answers

Removing modules in IIS7 in script

I have a Windows 2008 x64 server with WSUS installed and, thus, broken websites that use 32 bit app pools. This problem is due to the definition of a compression scheme within the applicationHost.config file for IIS. We have solved the problem for…
Al Henderson
  • 307
  • 1
  • 3
  • 11
0
votes
1 answer

Multiple wildcard certificate on IIS 7, how to chose

My wildcard certificate expires in three weeks and I've just renew it and installed the new certificate, so that my IIS has two now. I have currently more than 30 sites running and I would like to update them one by one to use the updated…
Certs
  • 85
  • 1
  • 1
  • 9
-1
votes
1 answer

How do I set the application pool disk space limit in IIS Manager in Compression using PowerShell or appcmd?

I I'm able to disable dynamic and static content using "appcmd", but cannot set "Per application pool disk space limit"!
Ed Pollnac
  • 121
  • 1
  • 6
-3
votes
1 answer

setup AppPool on IIs 10, keySet does not exist

I am running a windows 2016 server, we are running IIs 10 on it and i need to be able to assert if there is an AppPool setup before i deploy a website. If it doesn't exist i need setup the AppPool with a specific user and password. All of this is…
Toerktumlare
  • 12,548
  • 3
  • 35
  • 54
1 2 3
11
12