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

Calling appcmd results in the wrong password being set

I'm trying to call appcmd from within Go. The code below shows success, but the password is set to the wrong thing. If I remove the inner quotes (on the second line of main) it works, but then it doesn't work when the password includes spaces! Now…
Andrew
  • 1,571
  • 17
  • 31
0
votes
1 answer

APPCMD is create empty file

We have issue with executing APPCMD and it produces empty file. When we try with below command AppCmd list AppPools > c:\test\test.txt It creates a empty file. But when we just list in cmd prompt like below is works AppCmd list AppPools We have…
Jey
  • 107
  • 2
  • 12
0
votes
1 answer

How do I change the physical path of web site in IIS10 with APPCMD to Amazon FSx path?

I need to change the physical path of a web site through command line via the appcmd.exe tool which I want to point to Amazon FSx, but I can't figure out why I have errors. Here is what I'm using in PowerShell as admin: PS C:\Windows\system32>…
Diana Ruse
  • 21
  • 4
0
votes
1 answer

How to get the first element in the collection with appcmd.exe?

I need to get recycling time for the app pool. I can't use the powershell, so I use appcmd.exe for this. I found that there is a command for this: %windir%\System32\inetsrv\appcmd.exe LIST APPPOOL test…
Sheinar
  • 362
  • 3
  • 14
0
votes
1 answer

Setting app pools to recycle at multiple specific times via powershell or appcmd does not display both times in GUI/IIS

I am attempting to set app pools to recycle at multiple times in the day in iis 8.5, I've tried using powershell and app command and when testing on a server that has no sites/applications in the pool it seems to work perfectly, however when trying…
0
votes
0 answers

Why powershell2 iex (Invoke-Expression) opens a new console?

I run the iex alias on my computer everything looks good (it executes the command inside and print output into PS console), eg: iex "c:\windows\system32\inetsrv\appcmd list apppool /xml" But if I run this on a server, it opens a cmd windows with…
hazjack
  • 1,645
  • 13
  • 27
0
votes
1 answer

how to check "scheduled time(s) through AppCMD

iis> application pool> (recycling wizard)> i succeeded to edit "specific time(s) by appcmd. i cant find help how to check "Scheduled time(s) through appcmd. thanks
Udi
  • 11
0
votes
1 answer

Having trouble with the format of a custom action in WIX

I am trying to configure APICGIRestriction using APPCMD in WIX. The compiler throws an error saying "INvalid Format". When I try this command on the server directly, it works fine. Any ideas? I am using WIX 3.5 version. Also, I couldn't figure out…
sunvenu
  • 1
  • 1
0
votes
1 answer

How to use appcmd in Powershell Invoke-Command to add a virtual directory?

I want to use appcmd with Invoke-Command in Powershell to add a virtual directory. I am using reference from: 1) appcmd to create virtual directory 2) Powershell Invoke-Command Here is the code snippet: $appCmdCommand2 =…
Unknown
  • 778
  • 1
  • 7
  • 16
0
votes
1 answer

How can I specify SSL certificate when running appcmd add site?

I can create a web site in IIS using e.g. the following command: appcmd add site -name:portallocal -physicalPath:"C:\dev\projects\mysite" -bindings:https/127.0.0.1:444:mysite.dev But how can I also select an SSL certificate? I'd like the…
Svish
  • 152,914
  • 173
  • 462
  • 620
0
votes
2 answers

Why appcmd.exe does not allow to set ipSecurity allowUnlisted?

I would like to set ip restriction to the /admin folder on my website with PowerShell. I do understand, that because this section is locked I have to go to applicationHost.config, and unless I unlock I can not use local web.config in that particular…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
0
votes
1 answer

Powershell appcmd.exe trying to execute

I hava to add some environment to appPools? and i tried this code: $Appcmd = [System.Environment]::SystemDirectory + "\inetsrv\appcmd.exe" & $appcmd --% set config -section:system.applicationHost/applicationPools…
0
votes
0 answers

How to modify iis appconfig.config xml file using appcmd?

I have a file called C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config and I want to add the following params.
SomeGuyOnAComputer
  • 5,414
  • 6
  • 40
  • 72
0
votes
1 answer

how to use the absolute path in the msbuild config file(*.proj)?

the relative content in msbuild.proj file:
linus
  • 3
  • 4
0
votes
2 answers

Deleting an application directory from iss with appcmd and reports identifer needed

I have somehow created an application directory with the appcmd command that has hidden all of my applications directory. I can do a list of my application directories with appcmd and I think the last directory I created has the file path with a…