Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Get-SPProfile Leader

$
0
0

Hello,

I am trying to use the Get-SPProfileLeader powershell command to determine what it is set to but I am running into an issue.

I have run:

Get-SPServiceApplicationProxy

And I have identified the ID of my User Profile Services application.

I then run:

$upap = Get-SPServiceApplicationProxy 16ca8970-233a-4028-b2ac-0cadddc4e2d3

Get-SPProfileLeader $upap

But when I do that I receive the following error:

Get-SPProfileLeader : Object reference not set to an instance of an object.
At line:1 char:20
+ Get-SPProfileLeader <<<<  -ProfileServiceApplicationProxy $upaproxy
    + CategoryInfo          : InvalidData: (Microsoft.Offic...CmdletGetLeader:
   SPCmdletGetLeader) [Get-SPProfileLeader], NullReferenceException
    + FullyQualifiedErrorId : Microsoft.Office.Server.UserProfiles.PowerShell.
   SPCmdletGetLeader

So I must not be passing in the correct item - can anyone help me figure out how to use the Get-SPServiceApplicationProxy command so that I end up with the correct object?

Thanks,

Matt



Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>