Your ads will be inserted here by
Easy Ads.
Please go to the plugin admin page to set up your ad code.
Today I was looking at a user profile property in SharePoint 2010, and wondered why the usage (ie “number of profiles using this property”) was relatively low. I needed a quick way to get this information out.
The first two lines should be modified to your MySites host and the property you want to audit (eg PictureURL). The last line is an object representing the value of each property where populated and can be easily modified to suit your query.
Your ads will be inserted here by
Easy Ads.
Please go to the plugin admin page to set up your ad code.
$mySiteUrl = "http://mysites.company.com" $findProperty = "PictureUrl" $mySiteHostSite = Get-SPSite $mySiteUrl $mySiteHostWeb = $mySiteHostSite.OpenWeb() $context = Get-SPServiceContext $mySiteHostSite $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context) $AllProfiles = $profileManager.GetEnumerator() $outputCollection = @() foreach ($profile in $AllProfiles) { $output = New-Object System.Object $output | Add-Member -type NoteProperty -Name AccountName -Value $profile["AccountName"].ToString() $output | Add-Member -type NoteProperty -Name $findProperty -Value $profile[$findProperty] $outputCollection += $output } $outputCollection | ? {$_.($findProperty) -ne ""} | Sort-Object -Property AccountName |
Your ads will be inserted here by
Easy Ads.
Please go to the plugin admin page to set up your ad code.

hi there! , I like a person’s writing a great deal! amount many of us connect more to do with ones article with America online? We need an expert to the picture in order to resolve this challenge. Could possibly be which is you actually! Looking to assist you to.
https://waterfallmagazine.com
Cool blog! Is your theme custom made or did you download
it from somewhere? A design like yours with a few simple adjustements would really make my blog stand out.
Please let me know where you got your design. Appreciate it