In Web Server Management, starting the IIS (Internet Information Services) application pool is a fundamental administrative task. PowerShell has a WebAdministration module that provides cmdlets for managing IIS, including the starting of IIS pools.
To start an IIS app pool, you can use the `Start-WebAppPool
` cmdlet. The Start-WebAppPool command starts the specified IIS pool.
The following script will start the IIS pool named “HMI”.
Start-WebAppPool -Name "HMI"
In the above PowerShell script, the Start-WebAppPool
cmdlet uses the Name
parameter to specify the application pool name, in this case, “HMI“. This command first gets the Application pool and lastly, starts the IIS pool.
The Name
parameter specifies the name of the application pool to be started.
The output of the above PowerShell script starts the IIS pool. After executing the PowerShell command, you can confirm the application pool status using the Get-WebAppPoolState
command.
Kindly Note, that the Start-WebAppPool
cmdlet will throw an exception if the IIS app pool doesn’t exist in the IIS.
Conclusion
I hope the above article on how to start the IIS app pool using the PowerShell Start-WebAppPool cmdlet is helpful to you.
The IIS Application pool is a group of websites or web applications that are managed together by the IIS. Hence starting the IIS application pool is significant for resource activating the web applications, making them accessible to users and clients.
You can find more topics about PowerShell Active Directory commands and PowerShell basics on the ShellGeek home page.