Hi, I found the following code that does something similar to what I want, I think it is the right way, then only I need to find as it is called the section where this property I want to change and confirm the name of the property "Identity" that assume is Identity.
Imports System Imports System.Text Imports Microsoft.Web.Administration Class Sample Shared Sub Main() Dim serverManager As ServerManager = New ServerManager Dim config As Configuration = serverManager.GetApplicationHostConfiguration Dim applicationPoolsSection As ConfigurationSection = config.GetSection("system.applicationHost/applicationPools") Dim applicationPoolDefaultsElement As ConfigurationElement = applicationPoolsSection.GetChildElement("applicationPoolDefaults") applicationPoolDefaultsElement("autoStart") = True applicationPoolDefaultsElement("managedRuntimeVersion") = "v2.0" applicationPoolDefaultsElement("managedPipelineMode") = "Integrated" serverManager.CommitChanges() End Sub End Class
I want to change the Identity property of a Application Pool by code.
https://www.dropbox.com/s/ubfsacdrq03mfyu/ApplicationPool.jpg
Thanks in advance,
Luigggye