Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I start IIS Express?

Tags:

iis-express

I've used the Web PI to install IIS Express. In the tray, there is not the IIS Express icon. How do I start IIS Express without using the command line? I want that IIS runs permanently, so without command line.

like image 861
System.Data Avatar asked Jul 09 '11 15:07

System.Data


People also ask

How do you check IIS Express is installed or not?

IIS Express is normally installed into your 32-bit Program Files folder. So, to see if it's there you can try: C:\>cd "\Program Files (x86)\IIS Express" C:\Program Files (x86)\IIS Express>iisexpress /? Show activity on this post.


2 Answers

See Running IIS Express from the Command Line

  1. Open a command prompt.
  2. cd \Program Files\IIS Express, or
    cd \Program Files (x86)\IIS Express on 64-bit OS
  3. iisexpress /? to show usage

For example, you can start your IIS Express named site by issuing the command iisexpress /site:WebSite1 where WebSite1 is a site from the user profile configuration file (C:\Program Files (x86)\IIS Express\AppServer\applicationhost.config)

Another common way to start IIS Express is to issue the command iisexpress /path:c:\myapp\ /port:80 This command runs the site from the c:\myapp folder over port 80.

You could use a *.bat that you include in your startup folder that starts IIS Express for you (using C:\Users\<user name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup or the All Users startup folder C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup).

like image 70
Philippe Avatar answered Sep 24 '22 21:09

Philippe


In Windows 7 you can use the Windows PowerShell to hide the command window, for example i use:

start-process "c:\program files\iis express\iisexpress.exe" -workingdirectory "c:\program files\iis express" -windowstyle Hidden

PowerShell script execution is set to Restricted on most new systems by default so you might need to change that to RemoteSigned or something first.

like image 41
Cosmin Avatar answered Sep 22 '22 21:09

Cosmin