<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kanwaljeet Singla &#187; AhAdmin</title>
	<atom:link href="http://www.ksingla.net/tag/ahadmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ksingla.net</link>
	<description>Windows, IIS, PHP and more</description>
	<lastBuildDate>Thu, 10 Jun 2010 20:38:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using ahadmin to read/write IIS configuration &#8211; Part 2</title>
		<link>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part_2/</link>
		<comments>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part_2/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 01:10:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[AhAdmin]]></category>
		<category><![CDATA[IISConfig]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=37</guid>
		<description><![CDATA[<p><span style="font-size: 10pt">&#160;</span><span style="font-size: 10pt">Continuing my ahadmin drill down, lets see how to use available interfaces to work with section groups, section definitions, locations and metadata.</span>&#160;<b><span style="font-size: 10pt">IAppHostConfigFile interface</span></b>&#160;<span style="font-size: 10pt">Working with section groups, section definitions and locations require you to get an instance IAppHostConfigFile which is obtained using IAppHostConfigManager.GetConfigFile(). Following code gets IAppHostConfigFile instances for machine.config, root web.config, applicationHost.config and prints file path of each.</span><br />
<br />
<span style="color: blue; font-size: 10pt">var</span><span style="font-size: 10pt"> ahwrite = <span style="color: blue">new</span> ActiveXObject(<span style="color: #a31515">&#34;Microsoft.ApplicationHost.WritableAdminManager&#34;</span>);</span>&#160;<br />
<br />]]></description>
		<wfw:commentRss>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part_2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using ahadmin to read/write IIS configuration &#8211; Part 1</title>
		<link>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part1/</link>
		<comments>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part1/#comments</comments>
		<pubDate>Sun, 25 Feb 2007 02:47:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[AhAdmin]]></category>
		<category><![CDATA[IISConfig]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=36</guid>
		<description><![CDATA[<p><span style="font-size: 10pt">The Application Host Administration API (ahadmin.idl) interface library can be accessed using native code and any COM-interop means like script or managed code. This blog post details how to use this interface in scripts (all samples are in javascript) to read/write IIS7 configuration information.<br />
<br />
</span><span style="font-size: 10pt"><strong>Getting/Setting property values</strong></span><span style="font-size: 10pt"><br />
<br />
</span><span style="font-size: 10pt">You start by getting an instance of IAppHostAdminManager if you want to only read the config. If you want to write to config as well, you will need an instance of IAppHostWritableAdminManager which derives from IAppHostAdminManager. IAppHostWritableAdminManager has additionally CommitChanges method to commit changes to disk and CommitPath get/set property which dictates where the configuration settings are written. Lets create an instance of these.<br />
<br />]]></description>
		<wfw:commentRss>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
