Categories

Archives

PowerShell : Modifying Web AppPool Account

English

I think you may already know Set-SPServiceApplicationPool. This command can be used to modify apppool account for service application – but it doesn’t work for Web Application. I am looking for Set-SPWebApplicationPool but I can not find it anywhere.

image

So here is the PowerShell script

 

param([string] $url, [string] $account)

$SPWebApp = Get-SPWebApplication $url

$SPManagedAccount = Get-SPManagedAccount –Identity $account

$SPWebApp.ApplicationPool.ManagedAccount = $SPManagedAccount

$SPWebApp.ApplicationPool.Update()

Related Posts:

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <font color="" face="" size=""> <span style="">