February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to retrieve managed accounts on the farm.
Solution: Use the Get-SPManagedAccount cmdlet.
Issuing the Get-SPManagedAccount cmdlet without any parameters displays all managed accounts on the SharePoint farm. To retrieve a specific managed account, you can use the account name, as shown in Listing 4.8.
Listing 4.8. Retrieving a Specific Managed Account
Get-SPManagedAccount "SP\Administrator"
Tip
Pipe the result to other cmdlets that accept managed accounts or assign the result to a variable for use within a cmdlet script.
Read now
Unlock full access