Chapter 12. Managing IIS
This chapter covers
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.
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.
|WMI with .NET||Yes|
When you install IIS on a system, a .NET assembly is installed that provides administration access to IIS. The WMI provider is also installed.
Remember that a version of IIS is available on client versions of Windows, including Vista and 7, as well as the server versions.