How to start IIS Express manually

Is there a command line program or service that I can use to start IIS Express manually?

+63
iis iis-express
Mar 14 2018-11-11T00:
source share
5 answers
+57
Mar 14 '11 at 15:36
source share

After installing IIS Express (the easiest way is Microsoft Web Installer ), you will find the executable in %PROGRAMFILES%\IIS Express ( %PROGRAMFILES(x86)%\IIS Express on x64 architecture) and its name is iisexpress.exe .

To view all possible command line options, simply run:

 iisexpress /? 

and detailed help about the program will appear.

If executed without parameters, all sites defined in the configuration file and marked for launch at startup will be launched. An icon in the system tray will show which sites are running.

There are several useful options when you have some sites created in the configuration file (found in %USERPROFILE%\Documents\IISExpress\config\applicationhost.config ): /site and /siteId .

With the first, you can run a specific site by name:

 iisexpress /site:SiteName 

And with the latter, you can run by specifying an ID:

 iisexpress /siteId:SiteId 

At the same time, if IISExpress is launched from the command line, a list of all requests made to the server will be shown, which can be very useful for debugging.

Finally, the site can be started by specifying the full path to the directory. IIS Express will create a virtual configuration file and start the site (do not forget to specify the path if it contains spaces):

 iisexpress /path:FullSitePath 

This covers the main use of IISExpress from the command line.

+24
Apr 13 '11 at 2:30 p.m.
source share

From the links posted by others, I do not see the possibility. - I just use powershell to kill it - you can save this in the Stop-IisExpress.ps1 file:

 get-process | where { $_.ProcessName -like "IISExpress" } | stop-process 

There is no harm in this - Visual Studio will simply jump to a new one whenever it wants.

+5
Jun 16 '13 at 7:56
source share

Or you just manage it as a complete IIS using Jexus Manager for IIS Express,

https://jexus.codeplex.com/releases/view/138373

Jexus Manager for IIS Express

Launch the site and the process will be launched for you.

+3
18 Oct '15 at 10:02
source share

There is no program, but you can make a batch file and run this command:

powershell "start-process 'C:\Program Files (x86)\IIS Express\iisexpress.exe' -workingdirectory 'C:\Program Files (x86)\IIS Express\' -windowstyle Hidden"

0
Jun 18. '14 at 12:59 on
source share



All Articles