Retrieve the System Accounts
Scenario/Problem: You need to retrieve system account objects.
Solution: Use the Get-SPProcessAccount
cmdlet.
Issuing the Get-SPProcessAccount
cmdlet without any parameters displays all system and managed accounts on the SharePoint farm, as shown in Figure 4.2.
Several mutually exclusive switch parameters can retrieve a specific system account. The switch parameters are LocalSystem
, LocalService
, and NetworkService
. Use these separately, as shown in Listing 4.7.
Get-SPProcessAccount -LocalSystem ...
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.