Take the 2-minute tour ×
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 1 down vote accepted

To return a list of managed accounts:

Get-SPManagedAccount

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

Bye

share|improve this answer

Your Answer

 
discard

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.