PowerShell – Get User Profile Service info

# Get_UserProfileServices.ps1# Dump out any info I can glean from the User Profile Synch for SharePoint.## LukeB# http://technet.microsoft.com/en-us/library/ee721049.aspx#if ((Get-PSSnapin “Microsoft.SharePoint.PowerShell” -ErrorAction SilentlyContinue) -eq $null) {    Add-PSSnapin “Microsoft.SharePoint.PowerShell”}[void][System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) $USERPROFILESERVICEPROXY  = “Microsoft.Office.Server.Administration.UserProfileServiceProxy”$USERPROFILEAPPLICPROXY     = “Microsoft.Office.Server.Administration.UserProfileApplicationProxy”$USERPROFILESERVICE              = “Microsoft.Office.Server.Administration.UserProfileServiceInstance”$SYNCHSERVICE           = “Microsoft.Office.Server.Administration.ProfileSynchronizationServiceInstance” ################################################################################################################ — helper functionfunction Get-SPfarmAdministrators {  $adminwebapp = Get-SPwebapplication -includecentraladministration | where {$_.IsAdministrationWebApplication}  $adminsite = Get-SPweb($adminwebapp.Url)  $AdminGroupName = $adminsite.AssociatedOwnerGroup  $farmAdministratorsGroup =…

0