Welcome to MSDN Blogs Sign in | Join | Help

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
Tip #42: Did you know... ConfigurationEditor allows you to generate C#, JavaScript or AppCmd script to update configuration?

If you want to write a script to add new or update existing configuration, no matter what configuration file it belongs to (e.g. administration.config, applicationHost.config or website or application specific web.config), you can install Configuration Editor, which is a part of the IIS Admin Pack and use “Generate script” feature, just of its numerous great features.

In order to download this and read more about this please click on below links.

- 32-bit admin pack MSI

- 64-bit admin pack MSI

After you install the admin pack, go to the object, for which you want to generate a script (e.g. a server, website or application) and click Configuration Editor

ed1

First make a change to configuration by choosing a configuration file and configuration section from the drop-downs below, add new or modify existing configuration and click “Generate Script” from the Actions panel .

image

Copy code from the window that pops-up to your script! Modify as necessary.

image

Read more:

1. Using Configuration Editor: Generate Scripts

http://learn.iis.net/page.aspx/417/using-config-editor-generate-scripts/

2. How to Script / Automate IIS7 Configuration (without writing code)

http://blogs.iis.net/bills/archive/2008/06/01/how-do-i-script-automate-iis7-configuration.aspx

Please note that you will need to have II7.0 installed for using this.

Kateryna Rohonyan
SDET, IIS Team

Posted: Sunday, January 11, 2009 11:58 PM by WebDevTools

Comments

Visual Studio Hacks said:

My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. VS2008 KB: Hotfix available for Error message when you compile a project that contains the /arch:SSE(2) option and the /fp:except

# January 12, 2009 6:53 AM

Christopher Steen said:

WPF MouseEnter and MouseLeave loops in WPF [Via: Scott Hanselman ] Link Collections Interesting Finds:...

# January 12, 2009 5:48 PM

Christopher Steen said:

Link Listing - January 11, 2009

# January 12, 2009 5:49 PM

gOODiDEA.NET said:

Web Using Adobe Flex in Visual Studio What's New in Internet Explorer 8 - Responding to Change: Updated

# January 14, 2009 1:23 AM

gOODiDEA said:

WebUsingAdobeFlexinVisualStudioWhat'sNewinInternetExplorer8-RespondingtoChan...

# January 14, 2009 1:27 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker