Windows PowerShell Snap-In for IIS 7.5

Microsoft released a PowerShell snap-in for IIS that can help administrators automate most common operations with IIS sites and pools. SharePoint administrators in complex environments can benefit from the ability to automatically reset individual websites, recycle application pools, backup IIS configuration, and so on.

The IIS snap-in can be downloaded from the following URL:

http://www.iis.net/expand/PowerShell

After downloading, follow the onscreen instructions to install the snap-in.

To use the snap-ins from this pack, it must be added; type the following:

Add-PsSnapin WebAdministration

This snap-in is no different from the SharePoint one; use Get-Command and Get-Help to learn more about cmdlets. Use the following code to list all web applications and pools:

image

Commands with Start, Stop, and Restart verbs enable administrators to perform those actions against websites and pools. To reset a SharePoint central administration pool, type the following:

image

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset