Chapter 11. Web Server Administration

In this chapter, we will learn how to deal with Internet Information Services (IIS), the web server that ships with Windows servers. We will specifically look at the following topics:

  • Installing IIS
  • The WebAdministration module
  • Starting, stopping, and restarting IIS
  • Creating virtual directories and web applications
  • Working with app pools

Installing IIS

Before we install IIS, we need to determine whether it is already installed. This is done differently in a client OS, such as Windows 8.1, rather than in a server OS such as Server 2012R2.

Detecting and installing IIS in Windows 8.1

In a client OS, the cmdlet to use is Get-WindowsOptionalFeature, and the name of the feature to look for is IIS-WebServerRole. The –Online ...

Get Getting Started with PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.