Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I download data of all users from sharepoint using powershell script.

following statement has been used for getting profile data of all users
$profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext);
$profiles = $profileManager.GetEnumerator()

then i loop through $profiles to read data of each user using foreach loop

foreach ($profile in $profiles)
{
//read data
}

data is read properly, but the in cases where data type is managed metadata and multiple values are present in users profile. multiple values are returned without any seperation.

eg. user profile contains values as below

Ask Me About: test 1; test 2; test 3;

values returned in script are read without any seperation in between as below.

test 1 test 2 test 3

is this a known issue?

is there any different way where we can find all values from field with some seperation.
Posted

1 solution

Hello Ratnadeep,

Use Format Commands to change the Output View as required

Quick Link:http://technet.microsoft.com/en-us/library/dd347677.aspx[^]

All the Best :)
 
Share this answer
 
Comments
Ratnadeep_Raul 25-Feb-14 9:43am    
Hello Karthy,

Thanks for reply. But format command was of no use in my case.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900