Tuesday 3 July 2012

How to set the physical path of a virtual directory from the command line using appcmd.exe

 

>\Windows\System32\inetsrv\appcmd.exe set vdir "Default Web Site/MyAppName/" -physicalPath:"C:\MyAppPath"

For more information relating to appcmd.exe and it's various usages, see this link here...

http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe/

Also to discover which app pool workerprocess is which you can use the following command

%systemroot%\system32\inetsrv\appcmd.exe list WP

or just look at your task manager with the command line column expanded for the w3wp.exe process

 

image

No comments:

Post a Comment

How to find the last interactive logons in Windows using PowerShell

Use the following powershell script to find the last users to login to a box since a given date, in this case the 21st April 2022 at 12pm un...