Sunday, 7 February 2016

OneLiners in PowerShell for Accounts and User Profile

#the pluggable security trimmers that are associated with the User Profile service application proxy
Get-SPPluggableSecurityTrimmer -UserProfileApplicationProxyId $pr.Id
$pr= Get-SPServiceApplicationProxy | ? {$_.TypeName.Contains("Profile")}
#View Process Account
Get-SPProcessAccount
#View the company leader from specific user profile(Error ProfilePropertyCache does not have fc413acb-f0b1-4617-b2f3-f2ef93c7f8bb
Get-SPProfileLeader -ProfileServiceApplicationProxy $pr
#View Application Security for User Profile
#Error:UserProfileApplication.SqlSession has empty ApplicationID
Get-SPProfileServiceApplicationSecurity -ProfileServiceApplicationProxy $pr

No comments:

Post a Comment