4 Ways to Restart IIS in Windows Server 2016
Introduction:
In today’s IT environment, it is crucial for system administrators to ensure that their web applications run smoothly and efficiently. One way to achieve this is by managing the Internet Information Services (IIS) in Windows Server 2016. This article will cover four different methods for restarting IIS without needing a full system reboot.
1.Using IIS Manager
IIS Manager is a graphical user interface (GUI) tool that allows administrators to manage and configure IIS websites and applications. Here’s how to restart IIS using the IIS Manager:
1.Open the IIS Manager by clicking on the Windows ‘Start’ button and searching for “inetmgr”.
2.Browse to your server in the “Connections” pane and click on the server name.
3.In the “Actions” pane, click on “Restart”.
4.Wait for the process to complete, and your IIS server will be restarted.
2.Using Command Prompt
For those who prefer command-line tools rather than GUIs, the Command Prompt provides an alternative method for restarting IIS.
1.Open the Command Prompt with administrator privileges by right-clicking on it from the ‘Start’ menu, and selecting “Run as administrator.”
2.To perform a full reset for all worker processes running under IIS, type “iisreset” and press Enter.
3.The IIS service will stop, followed by a restart.
3.Using PowerShell
PowerShell is another powerful command-line tool that can be used to restart IIS in Windows Server 2016.
1.Open PowerShell with administrator privileges by right-clicking on it from the ‘Start’ menu, and selecting “Run as administrator.”
2.To restart the IIS service, type “Restart-Service -Name W3SVC” and press Enter.
3.The IIS service will stop and restart.
4.Using Windows Services
You can also restart the IIS service using the Windows Services application.
1.Open the “Services” application by pressing the ‘Windows Key’ + ‘R’, typing “services.msc”, and pressing Enter.
2.Find and select the “World Wide Web Publishing Service” from the list of services.
3.Right-click on it, and choose “Restart” from the context menu.
4.The IIS service will stop followed by a restart.
Conclusion:
Restarting IIS in Windows Server 2016 is an essential task for any system administrator managing web applications, and there are multiple ways to perform this action. Depending on your preferred method, you can use the IIS Manager, Command Prompt, PowerShell, or Windows Services to achieve your goal. With these methods available, maintaining seamless operation of your web applications is a breeze.