How to Reset an IIS AppPool With PowerShell
PowerShell version 2.0 or later
Things You'll Need
- Internet Information Server, often referred to as IIS, is the Microsoft Web server. IIS uses the concept of application pools for one or more websites to use for memory and resources. An application pool may require recycling when an application in that application pool quits responding to requests. The application pool can be reset from within the graphical user interface of Windows or via the PowerShell command. Using the PowerShell command to recycle the application pool assists in automating this activity without direct intervention.
Instructions
-
-
1
Open the PowerShell window located in the list of programs in the category "Accessories."
-
2
Enter the command "Restart-WebAppPool DefaultAppPool" and press "Enter." This command will restart the default application pool.
-
-
3
Select the Start icon on the Windows task bar, select "Administrative Tools" and then click on "Internet Information Services (IIS) Manager."
-
4
Expand the category "Application Pools" and then select "DefaultAppPool." Verify that the Stop icon is visible on the information bar of the II Manager window, confirming that the application pool is in a running state.
-
5
Type "exit" and press "Enter" at the command prompt in the PowerShell window to exit PowerShell.
-
1
References
- Photo Credit Thinkstock Images/Comstock/Getty Images