Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 2 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: 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


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.