<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS 7.0  - PowerShell</title><link>http://forums.iis.net/1151.aspx</link><description>All about IIS 7.0 PowerShell integration. Use this forum to ask PowerShell questions, discuss issues, request features and yell at IIS team members.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How do you unlock configuration data using the IIS Powershell snapin.</title><link>http://forums.iis.net/thread/1903820.aspx</link><pubDate>Fri, 15 May 2009 04:45:47 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903820</guid><dc:creator>sergeia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1903820.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1903820</wfw:commentRss><description>&lt;p&gt;It is quite confusing, indeed. OverrideMode is metadata on sections, we expose it as property in cmdlets, but it is actually read-only. To remove lock from the section you need to target metadata:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;set-webconfiguration //asp machine/webroot/apphost -metadata overrideMode -value Allow&lt;/p&gt;
&lt;p&gt;use path to your place instead of &amp;#39;machine/webroot/apphost&amp;#39;. Use name of your section instead of &amp;#39;asp&amp;#39;. Metadata is a switch in get-webconfigurationproperty, that adds s.Metadata member to section object &amp;#39;s&amp;#39;, and it takes name of metadata that you want to change in set-webconfiguration.&lt;/p&gt;
&lt;p&gt;PS IIS:\Sites\testSite\bar #&amp;gt; (get-webconfiguration //asp -metadata).Metadata&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;overrideMode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Allow&lt;br /&gt;... rest of metadata ...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for bringing it to our attention,&lt;/p&gt;
&lt;p&gt;Sergei&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How do you unlock configuration data using the IIS Powershell snapin.</title><link>http://forums.iis.net/thread/1900278.aspx</link><pubDate>Mon, 13 Apr 2009 01:20:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1900278</guid><dc:creator>Bob Landau</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1900278.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1900278</wfw:commentRss><description>&lt;p&gt;I want to be able to unlock some sections in particular the module, security among others&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is the XML data I&amp;#39;d like to be able to set using the cmdlets&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;section name=&amp;quot;modules&amp;quot; allowDefinition=&amp;quot;MachineToWebRoot&amp;quot; overrideModeDefault=&amp;quot;Allow&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;This works with Set/Get-WebConfigurationProperty &lt;br /&gt;(Get-WebConfiguration -filter /system.webServer/directoryBrowse).enabled&lt;br /&gt;Get-WebConfigurationProperty -filter /system.webServer/directoryBrowse -name enabled&lt;/p&gt;
&lt;p&gt;But neither of these do&lt;/p&gt;
&lt;p&gt;Get-WebConfigurationProperty -filter /system.webServer/modules -name OverrideMode &lt;/p&gt;
&lt;p&gt;Set-WebConfigurationProperty -filter /system.webServer/modules -name OverrideMode -value $false&lt;/p&gt;
&lt;p&gt;The error I get back is &lt;br /&gt;WARNING: Property OverrideMode is not found on&amp;nbsp; /system.webServer/modules.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This property is there I can see using either of these methods&lt;/p&gt;
&lt;p&gt;Get-WebConfiguration -Filter /system.webServer/modules | fl *&lt;br /&gt;(Get-WebConfiguration -Filter /system.webServer/modules).OverrideMode &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having similar difficulties modifying the Security and other sections&lt;/p&gt;
&lt;p&gt;Is this a bug? Please let me know what I&amp;#39;m doing wrong and how I can set these&lt;/p&gt;
&lt;p&gt;thx&lt;/p&gt;
&lt;p&gt;bob&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>