Chapter 12. Managing IIS

This chapter covers

  • IIS WMI providers
  • Configuring web servers
  • Website lifecycle and management
  • Application pools and web applications

Internet Information Server (IIS) is used in many situations in Windows-based environments. It’s used directly as a web server and it’s also used in the background in products such as Windows Server Update Services (WSUS), Exchange 2007/2010, and SharePoint. IIS may not be the first application that comes to mind when you think of using PowerShell and WMI to administer remote servers, but it provides a lot of functionality. You need to be able to administer IIS remotely the same as any other application.

IIS 7

This chapter will only consider working with IIS 7 (Windows Server 2008 and 2008 R2). A WMI provider is available for IIS 6 on Windows Server 2003, but it isn’t identical. The techniques in this chapter can be used as a guide for working with the older version.

There are a number of ways you can administer IIS using PowerShell, as listed in table 12.1.

Table 12.1. Methods of accessing IIS through PowerShell

Method

Remote working

.NET No
WMI Partial
WMI with .NET Yes
IIS cmdlets No
IIS provider No

When you install IIS on a system, a .NET assembly is installed that provides administration access to IIS. The WMI provider is also installed.

Note

Remember that a version of IIS is available on client versions of Windows, including Vista and 7, as well as the server versions.

12.1. IIS WMI provider

12.2. Websites

12.3. Application pools and applications

12.4. Summary

sitemap