Take the 2-minute tour ×

I need to get all Managed Accounts in SharePoint 2013. If there are nothing, I need to create a new one. How can I do this using PowerShell?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

To return a list of managed accounts:


To create a new managed account:

$appPoolUserName = "<domain>\<user_name>"
$appPoolCred = Get-Credential $appPoolUserName
New-SPManagedAccount -Credential $appPoolCred
share|improve this answer

just take a look at: http://www.automism.at/2013/02/22/sharepoint-2013-managed-accounts-2/ the post contains pretty detailed Information about createing the Managed Accounts for SharePoint 2010/2013 the first post in that series also contains a PowerShell script to create the ActiveDirectory Accounts that are used for the Managed Accounts


share|improve this answer

Your Answer


