Renaming applications in IIS 7.0

I recently had to do this and I think you are better off using appcmd because ,as you said, we don’t know what other changes may occur behind the scenes Example, appcmd list app APP “Default Web Site/” (applicationPool:DefaultAppPool) APP “Default Web Site/develop” (applicationPool:mypool) APP “Default Web Site/develop/xyz” (applicationPool:mypool) In my case, I did have … Read more

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

Appcmd.exe exists at the location %systemroot%\system32\inetsrv\. You either need to update your PATH variable to add the path %systemroot%\system32\inetsrv\ like SET PATH=%PATH%;%systemroot%\system32\inetsrv\ or you can use Set-Location to first go to the location of Appcmd.exe like Set-Location %systemroot%\system32\inetsrv\ and then run you command. OR you can use the following: c:\windows\system32\inetsrv\appcmd.exe

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

This is how you should do: C:\Windows\System32\inetsrv>appcmd set vdir “MySite/” -physicalPath:”C:\inetpub\temp” Note: “MySite/” is a name of your virtual directory so if your virtual directory is under default web site you’re likely have to set “Default Web Site/MySite/” As for figuring out how to do other appcmd commands just type: appcmd set vdir /? and … Read more

tech