Tags

, ,

I am not sure who design the page, you have to click the up arrow next to the property to move it up one and each time you click the arrow the page refreshes so you have to scroll back down before you can do it again and if you have to move the property by 50 positions that 50 clicks and 50 page refreshes –

 

image

 

Below script can change the order for you, and the later part is to display the order of the properties for reference

Add-Type -Path "c:\program files\common files\microsoft shared\web server extensions\14\isapi\microsoft.office.server.dll"
$mySiteUrl = "http://yourmysitegoeshere"
$site = Get-SPSite $mySiteUrl
$context = Get-SPServiceContext $site
$upConfigManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager($context)
$profilePropertyManager = $upConfigManager.get_ProfilePropertyManager()
$upConfigManager.GetProperties().SetDisplayOrderByPropertyName("SIMCARD",5510)
$upConfigManager.GetProperties().CommitDisplayOrder() 


$AllProperties = $upConfigManager.GetProperties()

foreach($prop in $AllProperties)
{
 
$DisplayName = $prop.DisplayName
 
$DisplayOrder = $prop.DisplayOrder

 
write-host $DisplayName, ";", $DisplayOrder, ";" 
 
}
write-host "Finished."

					
Advertisements