PowerShell script generation in IIS Configuration Editor

Posted: Mar 05, 2012  2 comments  

Average Rating

Tags
IIS 8.0 beta
powershell
Windows Server 8 beta

Share this Post

This is "simple", yet it is definitely one of my favorite features in IIS 8.0 beta.

As you know, the IIS configuration system is built on a schematized XML, applicationHost.config.   While the IIS Manager does expose the most common administration tasks via the UI, it does not expose every configuration parameter.   To address this "gap", the IIS Configuration Editor was introduced (as an IIS Extension on IIS 7.0 and as an in-box feature on IIS 7.5).   In addition to being able to make every configuration change using the UI, the IIS Configuration Editor also generates the corresponding C#, JavaScript and AppCmd scripts.   With IIS 8.0 beta, it now also generates PowerShell:

1) Simply double-click on Configuration Editor:

2) Make the desired changes:

3) Under "Actions", click on "Generate Script":

4) Locate the new tab, PowerShell:

And now you can embed the generated script for your use.    Yes, "simple", yet very powerful tool.

Hope you are enjoying the new features in IIS 8.0 beta.   Please feel free to provide feedback.

Comments

The PS provider syntax is a bit crytic to remember but using the Configuration Editor I've done 1000's of times to get the appcmd syntax, now I can use powershell!!!

MS does listen to feedback, tx for adding this!

Mar 18 2012 by steve schofield

Is there any way to add this capability to servers running older versions of IIS (i.e, 2003 and/or 2008?)

Apr 12 2013 by dlgross

Submit a Comment

  • Plain text is accepted.
  • URLs starting with http:// are converted to links.