1. Paul said:

    Hm, that does not seem to work, there is no output from the script once it runs. Unless I am doing something wrong.

    • Hi Paul,

      The script contains a function in Powershell, but does not call it as the function requires an input parameter specific to your environment. There are two ways to get an output:

      1. Include the script (use command: . {FullPathToScript} ). Example: “. ‘C:/Scripts/UPPScript.ps1′”) and then use the function defined in the file(use command: ListUPPDisplayOrder {MySiteHostUrl}). Example: ListUPPDisplayOrder http://spdevel.social.com

      2. When you copy the script, uncomment the last line(remove # character) which calls the function, and replace “http://spdevel.social.com” with the url of your My Site Host. Your last two lines should look like this:
      ListUPPDisplayOrder http://spdevel.social.com

      Please let me know if you encounter any other issues.

  2. Satheesh S said:

    Hi Radu
    Thanks for the post.

    The display order is working fine , but the last script reorder is throwing the below error “Get-SPServiceContext : A positional parameter cannot be found that accepts argument ‘$null’. in the line $context = Get-SPServiceContext $mys $upcManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager($context)

    Please let me know what could be the reason for that.

    Satheesh S

    • Hello Satheesh,

      Please verify if you are running your script with a user that has permissions on the user profile application, and if you are running the PS console as an administrator.
      Also the you need to supply a valid url to the My Site Host location for the script.
      How do you call the function?
      Please see the sample usage example:
      UPPReorder C:\Temp\Blog\config.userproperties.xml http://spdevel.portal.com

      The second parameter needs to be a valid url to your My Site Host location.

      Best Regards,


  3. Thanks! Works great. I started out by doing the clicking in CA, but then wondered why my property wouldn’t move up beyond a certain point in the list. Using the first script, I can see that the DisplayOrder of the properties jumps from 27 to 5001…that would have taken a lot of clicks.:)

    Many thanks for sharing!
    Paul W.

  4. Pingback: TechNet Blogs

  5. Reblogged this on Jacob and commented:
    Was looking for this! Hopefully this will help. Great post!

  6. parasuram said:

    HI Radu,

    I am getting below error message, could you please help me out on this?

  7. Geoff Taylor said:

    Hi Radu
    Just wanted to say well done. This is a great script and has saved me a lot of time.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: