Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Use PowerShell and IIS

You need to load the WebAdministration module from an administrative PowerShell session or with an account that has administrative rights to manage Internet Information Services (IIS). If you do not have administrative access and try to import the WebAdministration module, you will see an error similar to Figure 10.1.

FIGURE 10.1 Importing WebAdministration: access denied

image

From an administrative PowerShell session, run the following command:

Import-Module WebAdministration

To see the list of commands for the WebAdministration module, run the following command:

Get-Command -module WebAdministration

Your results will look similar to Figure 10.2.

FIGURE 10.2 IIS cmdlets

image

Work with Configuration Files

In IIS 7.0 and IIS 7.5, configuration is stored in XML files. (In prior versions, the configurations were stored in a location called the metabase.) These XML files can be stored in a centralized location and are much easier to work with compared to the metabase. This enables a shared configuration for all your web servers.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial