Can a script update the Identity tab fields of Application Pool properties in IIS 6.0+ Can a script update the Identity tab fields of Application Pool properties in IIS 6.0+ powershell powershell

Can a script update the Identity tab fields of Application Pool properties in IIS 6.0+


You can use such PowerShell script:

Import-Module WebAdministration$appPool = New-WebAppPool -Name "MyAppPool"$appPool.processModel.userName = "domain\username"$appPool.processModel.password = "ReallyStrongPassword"$appPool.processModel.identityType = "SpecificUser"$appPool | Set-Item