#First create a connection to the User Profile Manager
$MySite = Get-SPSite http://MySite
$context = Get-SPServiceContext $MySite
$profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
#Then type To view the current order
$profilemanager.properties | ft name,displayorder
#set the display order for a property
$profileManager.Properties.SetDisplayOrderByPropertyName("Languages",16)
$profileManager.Properties.CommitDisplayOrder()
No comments:
Post a Comment