tag:blogger.com,1999:blog-3323891144353318207.post1583023917745640783..comments2024-03-13T08:04:46.236-04:00Comments on SteveMann's Path: SharePoint 2010/2013: Using PowerShell to Find Empty User Profile PropertiesSteve Mannhttp://www.blogger.com/profile/07380496759963407882noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-3323891144353318207.post-66650056728568915992014-06-18T09:40:01.266-04:002014-06-18T09:40:01.266-04:00Great script...I work for a large company and our ...Great script...I work for a large company and our pictures are not not in AD. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-38434336148689871702013-10-21T18:30:30.143-04:002013-10-21T18:30:30.143-04:00The account must have permissions granted in the U...The account must have permissions granted in the User Profile Service Application. I always run PowerShell and SharePoint Management Console as administrator too.Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-9916569599849554902013-10-21T10:17:20.765-04:002013-10-21T10:17:20.765-04:00Steve, I've got the same error as the user abo...Steve, I've got the same error as the user above. The code you mentioned is on the same line.<br />What permissions does the user need to run your script?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-62535181263363355362013-08-31T16:53:27.669-04:002013-08-31T16:53:27.669-04:00thanks for the scripts. it helped me to pull some ...thanks for the scripts. it helped me to pull some profile properties.<br /><br />Deepthideepthihttps://www.blogger.com/profile/09992812121561068238noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-82844725473534642312013-08-14T09:47:56.979-04:002013-08-14T09:47:56.979-04:00Steve, Thanks for Replying. I turned out to be a p...Steve, Thanks for Replying. I turned out to be a permissions issue. Thanks again for the script!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-13531283146944795962013-08-09T18:34:37.296-04:002013-08-09T18:34:37.296-04:00This code should all be on the same line:
$profil...This code should all be on the same line:<br /><br />$profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-27576803152111011502013-08-09T18:32:10.404-04:002013-08-09T18:32:10.404-04:00Make sure the New-Object line includes the next li...Make sure the New-Object line includes the next line in post so they are on the same line. I had to put in a line break for spacing in tbe post.Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-53648027460075953332013-08-09T10:50:15.453-04:002013-08-09T10:50:15.453-04:00This looks like a very useful script for me. Howev...This looks like a very useful script for me. However, I get a series of errors when I run it:<br /><br />New-Object : Exception calling ".ctor" with "1" argument(s): "Object reference<br />not set to an instance of an object."<br />At M:\spprofiles.ps1:13 char:29<br />+ $profileManager = New-Object <<<< Microsoft.Office.Server.UserProfiles.UserP<br />rofileManager($context)<br /> + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvoca<br /> tionException<br /> + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.Power<br /> Shell.Commands.NewObjectCommand<br /><br />You cannot call a method on a null-valued expression.<br />At M:\spprofiles.ps1:14 char:45<br />+ $AllProfiles = $profileManager.GetEnumerator <<<< ()<br /> + CategoryInfo : InvalidOperation: (GetEnumerator:String) [], Run<br /> timeException<br /> + FullyQualifiedErrorId : InvokeMethodOnNull<br /><br />Cannot index into a null array.<br />At M:\spprofiles.ps1:21 char:79<br />+ $output | Add-Member -type NoteProperty -Name AccountName -Value $profile<br />[ <<<< "AccountName"].ToString()<br /> + CategoryInfo : InvalidOperation: (AccountName:String) [], Runti<br /> meException<br /> + FullyQualifiedErrorId : NullArray<br /><br />Cannot index into a null array.<br />At M:\spprofiles.ps1:22 char:81<br />+ $output | Add-Member -type NoteProperty -Name $findProperty -Value $profi<br />le[ <<<< $findProperty]<br /> + CategoryInfo : InvalidOperation: (PictureUrl:String) [], Runtim<br /> eException<br /> + FullyQualifiedErrorId : NullArray<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-52725224391810275982013-05-30T06:08:12.871-04:002013-05-30T06:08:12.871-04:00This article gives the light in which we can obser...This article gives the light in which we can observe the reality. this is very nice one and gives knowledgeable information. <br />Aidan Bairdhttp://aidanbaird.snappages.com/blog/2013/05/30/the-importance-of-sharepoint-software-development-in-the-marketing-technology-todaynoreply@blogger.com