Dear All,
In my web.config I want to add the following tags through Windows Powershell Script
this tag should go between <assemblies></assemblies>
<add assembly="System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
This tag should go between <handlers></handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="/v1/*" verb="GET,POST,DELETE" type="System.Web.Handlers.TransferRequestHandler"preCondition="integratedMode,runtimeVersionv4.0" />
I have started to write script but I could only go this far
$webConfig = '.\web.config'
[xml]$web = (Get-Content $webConfig)
Any help would be greatly appreciated