Home » PowerShell » Start IIS Web Site Using PowerShell

Start IIS Web Site Using PowerShell

To start the IIS website using PowerShell, use the `Start-IISSite` cmdlet. The Start-IISSite command starts an existing website on the IIS server.

The Start-IISSite cmdlet has the below syntax:

Start-IISSite
     [-Name] <String>
     [-Passthru]
     [<CommonParameters>]

Starting a website is a very important administrative task. It is to ensure that the website should be running and accessible to the users.

In this article, we will discuss how to start an IIS website using the PowerShell Start-IISSite cmdlet.

How to Start an IIS Website in PowerShell

Use the Start-IISSite command of the IISAdministration module to start an existing website on the IIS server.

Start-IISSite -Name "Default Web Site"

In the above PowerShell script, the Start-IISSite command uses the Name parameter to specify the name of the website you want to start on the IIS server.

The output of the above PowerShell script starts the ‘Default Web Site’ in the IIS server.

Conclusion

I hope the above article on how to start an IIS website using the PowerShell Start-IISSite cmdlet is helpful to you.

You can find more topics about PowerShell Active Directory commands and PowerShell basics on the ShellGeek home page.

Related Articles

Create a new web application

Create a new website

Get all websites and applications in IIS

Check IIS Status

Start IIS App pool

Get All IIS Site Bindings