O'Reilly logo

Professional Microsoft IIS 8 by Benjamin Perkins, Dennis Glendenning, Scott Forsyth, Jeff Cochran, Kenneth Schaefer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

IIS PowerShell Management

PowerShell is a very powerful command-line and scripting language that can be used to administer applications running on the Windows platform. It is tightly integrated with the .NET Framework and provides full access to existing COM, WMI, and .NET capabilities. PowerShell tasks are executed using cmdlets, which are small pieces of code that perform a specific function. PowerShell can also be used to administer a system remotely, and it can be used to monitor the health or change the configuration of the Windows operating system itself.

This section discusses PowerShell capabilities specific to IIS. Examples of what you can do with IIS from PowerShell include the following:

  • Add, modify, and delete websites and application pools.
  • Stop, start, recycle, and monitor the health of application pools.
  • Enable and disable global modules.
  • Back up and restore a web configuration.
Note
Execute get-command for a list of all the available commands.

This section discusses the following topics:

  • The available IIS PowerShell cmdlets
  • Using the help methods to better understand what the cmdlet does
  • Examples of numerous cmdlets to add, modify, and delete configurations
  • Monitoring and controlling the state of objects
  • Backing up and restoring the IIS configuration

PowerShell IIS Cmdlets

PowerShell works together with the server management objects and allows an administrator to perform a large number of IIS actions. Those objects also expose attributes, such as web ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required