Cannot find an overload for "PeopleManager" and the argument count: "1".

Every time getting following error
Cannot find an overload for “PeopleManager” and the argument count: “1”.
at following line
$people = New-Object Microsoft.SharePoint.Client.UserProfiles.PeopleManager($context)
I am referring userprofile dll from 16 hive...

Hi,
Can you provide the complete script in use for a further research? It would make others easier to find out the root cause of this issue.
Here is a working demo which works in my environment, you can take it for a try:
#Specify tenant admin and URL
$User = "[email protected]"
#Configure Site URL and User
$SiteURL = "https://tenant.sharepoint.com/sites/mysite"
#Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.UserProfiles.dll"
$Password = Read-Host -Prompt "Please enter your password" -AsSecureString
$Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User,$Password)
#Bind to Site Collection
$Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
$Context.Credentials = $Creds
#Identify users in the Site Collection
$Users = $Context.Web.SiteUsers
$Context.Load($Users)
$Context.ExecuteQuery()
#Create People Manager object to retrieve profile data
$PeopleManager = New-Object Microsoft.SharePoint.Client.UserProfiles.PeopleManager($Context)
Foreach ($User in $Users)
$UserProfile = $PeopleManager.GetPropertiesFor($User.LoginName)
$Context.Load($UserProfile)
$Context.ExecuteQuery()
If ($UserProfile.Email -ne $null)
Write-Host "User:" $User.LoginName -ForegroundColor Green
$UserProfile.UserProfileProperties
Write-Host ""
Thanks 
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • Cannot find apps purchased for iPhone and iPad in iTune

    My iMac 27 running very slowly under Mavericks and since the upgrade of iTune to version 12.01.26 being impossible to complete a sync of my iPhone and iPad I decided to completely reset my iMac 27. Before doing this I copied all the files I wanted to keep on my MacBook Pro (including all my music and apps for iPhone and iPad).
    The OS X Mavericks being no longer available on the App Store I completely reset my iMac 27 and installed OS X Yosemite 10.10. Once this was done I copied back all the files I wanted to keep from my MacBook Pro (running Mavericks) to my iMac 27 (now running Yosemite). There was no problem with all my music now appearing in iTune. However I cannot find any of the apps I bought for my iPhone and iPad and which I copied back from my MacBook Pro (running Mavericks) to my iMac 27 (now running Yosemite).
    All the copied back apps appear correctly in the following directory of my iMac 27 :
    Musique/iTunes/iTunes Media/Mobile Applications/
    However none appear in any of the 5 sections in the Apps section of iTune.
    I decided to purchase an app in the App Store to see where the related file would appear and it appears in the same directory as stated above. I can see the icon of this newly purchased app in the app section of iTune but none of the apps I recopied from my MacBook Pro. Moreover when I go in the app store to see the newly purchased app I can see that it has been downloaded. However when I try to do the same for the apps I have already purchased and recopied the App Store tells me to purchase them. When I try to do the same on my MacBook Pro the App Store tells me that the apps have already been purchased, though they were the copied apps from my iMac 27 before full reset.
    Can someone help me to get all my previously purchased apps in iTune on my iMac 27 so I can sync my iPhone and iPad without loosing all the apps which appear on them ?

    Fruit Ninja has a unique iPhone version and a unique iPAD version. So for this particular App you can buy both. That said, if you decide to buy the iPhone version, the iPhone version will also work on your iPAD too. But the iPAD version which you have already purchased will not work on the iPhone.
    So to summarize, iPhone apps will work on iPAD, but iPAD unique or specific apps will not work on the iPhone. Some apps are designed to work on both beyond the features of just the iPhone app. The Fruit Ninja HD unique or specific iPAD app will not work on the iPhone.

  • Cannot find 2nd slot for memory on the M45-S169

    Need real help in finding the 2nd slot for memory on the M45-S169...I have removed the keyboard but cannot find any slot. I have seen the different post that have different locations but I do not see any 2nd slot. The user manual is of no use...I have the keyboard off but do not see anything resembling a memory slot. Any Help would be greatly appreciated...
    Solved!
    Go to Solution.

    60836083 wrote:
    I saw both of those posts and there is no second slot on the back only one under the memory module slot. Other posts say that its located under the keyboard. I have removed key board and there is no slot..
    You may want to look once again.  On some models, there are two slots stacked atop each other.

  • I purchased an itrip Auto Pilot and require an app to use it according to my device I was setting up to play music in my car speakers.  I cannot find an app for this in the itunes store.  Help

    I purchased an ITrip Auto Pilot and when attempting to use it to play music from my Iphone through my car speakers, I was promptedd to get an app from the itunes store to enable it to work.  I went to the itunes store and searched for an app and could not find one.  Can anyone tell me the app I need and where to get it for this itrip auto pilot made by Griffin?  It is supposedd to enable my iphone and ipod to play on my FM radio in my car.

    You should go to the web site for the iTrip product and see what app it is, I'll bet there's a link there that will take you right to the app.  Don't worry, as you get more stuff it'll be easier to figure it all out, eventually it'll be plain old common sense that solves these types of issues for you

  • TS3694 I have not updated my iphone in two years, and error -43 occured. i cannot find any help for this

    I have not updated my iphone in two years, and error -43 occured. i cannot find any help for this on the apple site

    If the phone has been hacked, we can not offer advice on Apple's support site.
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.

  • HT1551 How can I view youtube directly on appletv. I cannot find an icon for it

    How can I view YouTube directly on appletv, I cannot find an icon for it in the main menu

    Open Finder Preferences, COMMAND ',' (comma).  Check the boxes for the desired items.
    Ciao

  • TS1368 Done all of the above...everything is in order, still cannot connect to the store.  I have the 5th gen iPod and $50 iTunes gift card.  I am going to return both of these items it I cannot find a fix for this.

    Make sure that you can access the Internet on your computer or device.
    Make sure that your computer meets the iTunes minimum system requirements.
    Make sure that your operating system is up-to-date:
    Done all of the above...everything is in order, still cannot connect to the store.  I have the 5th gen iPod and $50 iTunes gift card that I cannot use(been trying now for 6 days).  I am going to return both of these items if I cannot find a fix for this.

    When I called Apple (after wating 42 min. for a live person) I was told to run the APPLE Software Update and turn off location services then restart my computer.  There were no available updates. The iPod touch I got on Christmas day.  The iTunes app was downloaded the same day.  Since day 1 I have not been able to connect.  I also followed lllaass's advice and followed instructions on the following 2 websites.
    http://www.idownloadblog.com/2012/09/20/fix-for-cannot-connect-error/
    http://www.youtube.com/watch?v=PIUitRyZS6U
    After restarting my computer:
    From the iTunes app I click on the 'iTunes Store'
    A new window opens and I get the following message:
    This Apple ID has not yet veen used with the iTunes Store.
    Please review your account information
    So I click on 'Review' and am taken to a crude screen that says
    Welcome to the iTunes Store
    With an Apple ID, you can download the latest music, videos, and more.
    To begin creating your Apple ID, click Continue.
    So I click on 'Continue'
    A pop up window says:
    We could not complete your iTunes Store request. An unknown error occurred (-1202).
    There was an error in the iTunes Store.  Please try again later.
    And the only option I am left with is to click 'OK'
    After every fix this same scenerio just loops and loops and loops

  • I cannot find information to help me change the orientation of a video filmed in portrait format but only able to be played back lying on its side  (landscape) instead of upright. All the rotation buttons for iPhoto are not 'engaged' when it is in video .

    I cannot find information to help me change the orientation of a video filmed in portrait format but it can only able to be played back lying on its side  (landscape) instead of upright. All the rotation buttons for iPhoto are not 'engaged' when it is in video .

    Thanks OT,
    I tried the Export function but it would not allow me to choose the option of exporting to iMovie. I think you are right about needing Quicktime Pro. I opened iMovie and imported the clip from iPhoto and with some searching found the 'cropping, rotation' mechanism. So I now have a copy in the correct orientation. I plan to import/export it back to iPhoto because I want to have a copy on my iPhone to show people and I wanted to have it available as part of a slideshow I am making in iPhoto of my recent overseas trip. It is a pain that there is no simple orientating tool for the movie clips downloaded to iPhoto with the photos from the one camera.

  • I recently upgraded to Mavericks and now don't have access to iphoto.  I cannot find my iphoto library to back the photos up before upgrading the iphoto but see the photos when I try to change screensaver?  Where are my photos so I can back them up?

    I recently upgraded to Mavericks and now don't have access to iphoto.  I cannot find my iphoto library to back the photos up before upgrading the iphoto but see the photos when I try to change screensaver?  Where are my photos so I can back them up?

    The iPhoto library should be in your user folder/Pictures unless it was moved.

  • Cannot install latest updates for Bridge and Photoshop CC. Get the following message: Update Failed. The download appears corrupted.  U43M1D207.

    Cannot install latest updates for Bridge and Photoshop CC. I get the following message: "Update Failed. The download appears corrupted.  U43M1D207."
    I have tried to install at different times over three different days with the same result each time. My version of Bridge now no longer shows DNG files except as an icon. The update is supposed to install Camera Raw version 9.

    I had the 204 version of your error using the direct download links proved on this thread solved my problem.. hope you have same success... had to log off/in cloud manager before it showed all apps updated
    https://forums.adobe.com/thread/1825014

  • It can't find URL when i use HLS for vod and the vod file name contain Chinese.

    It can't find URL when i use HLS for vod and the vod file name contain Chinese。eg: http://127.0.0.1:8134/hls-vod/你好.mp4.m3u8.
    How does it support Chinese path?

    To answer the post title FireFox save all downloads automatically in the download folder, which you can find in the Documents folder. If you want to choose where to save your downloads go to tools>options>check always ask me where to save files.
    Secondly, I am assuming you have IE 8 installed as this is the only version that supports this fix that is currently not in beta. Go to control panel>internet options>advanced tab and reset the settings at the bottom. This may or may not fix the problem but it is a good first step.

  • My WiFi on my iPad has been getting poorer recently, and two days ago stopped working completely. I have reset the network settings, and when that didn't work I restored my iPad. I still cannot find or access WiFi networks, and if I do, it fails. Help!!

    My WiFi on my iPad has been getting poorer recently, and two days ago stopped working completely. I have reset the network settings, and when that didn't work I restored my iPad. I still cannot find or access WiFi networks, and if I do, it fails. Help!!

    My WiFi on my iPad has been getting poorer recently, and two days ago stopped working completely. I have reset the network settings, and when that didn't work I restored my iPad. I still cannot find or access WiFi networks, and if I do, it fails. Help!!

  • Hi , I just bought a Adobe Ligthroom 5 Software download card and looking to download LR5 but I cannot find a link for LR5 only goes to CC , so it's only Creative Cloud to download LR5 ?

    Hi , I just bought a Adobe Ligthroom 5 Software download card and looking to download LR5 but I cannot find a link for LR5 only goes to CC , so it's only Creative Cloud to download LR5 ?

    http://blogs.adobe.com/lightroomjournal/2014/07/lightroom-5-6-now-available.html

  • I have HugesNet Gen4 and have downloaded most current version.  I am unable to open and cannot find where in system preferences and/or Safari I give permission.  Can a techie tell me where?

    Because I downloaded from internet, I am unable to open.  I cannot find where I give permission and/or if I need to download some plug in or something.  Please help and thanks.

    Hello Charlene,
    It sounds like you are getting a message that the application you downloaded can't be opened because it's from an unidentified developer. 
    Gatekeeper is a feature of Mac OS X that by default blocks software from unknown developers, but you can change the functionality to download and install software from developers you trust:
    Gatekeeper gives you more control over what you install. You can choose the safest option and only allow apps that come from the Mac App Store to open. There is also the option of only allowing apps that come from the Mac App Store and identified developers. Or you can choose to allow any apps to open, just like previous versions of OS X.
    Gatekeeper options are found in Apple menu > System Preferences… > Security & Privacy > General tab under the header "Allow applications downloaded from:"
    If you trust the source you are downloading the application from, you can switch the option to "Anywhere" to download the file.  Once you finish downloading the file, you can always switch back to one of the other options.
    OS X: About Gatekeeper
    http://support.apple.com/kb/ht5290
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HT5243 how do I find my password for adobe and Java

    how do I find my password for adobe and Java

    "Java" doesn't have a password, unless you mean your admin password for installing software. That's whatever password you (or the person who set your computer up) used to set up your admin account. That's the same password that you use when you start up the computer if you get asked for one. You cannot retrieve this password if you've forgotten it, but you can reset it and make a new one. See this support article if that's the case:
    http://support.apple.com/kb/PH14325
    "Adobe" is a company and likewise doesn't have a password. However, if you have Adobe cloud-based software you may well have set up a password with them. Adobe also require an account and password for downloading certain products. You'll need to contact Adobe to retrieve any such password if you've lost it.
    Try
    Adobe ID, sign-in, and account help

Maybe you are looking for

  • Help Needed in opening a HTML File from swing application

    Hi, I am opening a HTML file in Internet Explorer from my swing application. I am using the code given below private final static String WIN_FLAG = "url.dll,FileProtocolHandler"; private final static String WIN_PATH = "rundll32"; String cmd = WIN_PAT

  • ICC profile conflicts when printing from Aperture?

    I have worked with Aperture now for two years, and I still have problems printing anything that is close enough to what I see on my calibrated screen. And believe me, I have done some reading on color management and ICC profiles. I suspect that Apert

  • CORBA - Oracle DBMS acting as Client in a relation Client - Server

    Hi, I'de like to invoke some services in an Transaction Server from my Oracle 8i Database (8.1.6) wich is in another machine. Is this possible in Oracle, and if so, are there any resources explaining how can i achieve this? Note that the transaction

  • Xalan backward compatibility problem

    I am migrating my application from Jrun to JBoss. And I am getting the following problem. java.lang.VerifyError: (class: org/apache/xalan/xpath/xdom/XercesLiaison, method: parse signature: (Lorg/xml/sax/InputSource;)V) Incompatible object argument fo

  • I NEED A RESPONSE FAST!!

    i have a macbook pro 15 inch (the faster model). i am currently working on a fcp project (i tried posting on the fcp page but they didnt respond fast enough). if anyone here knows how to use fcp well, please answer. i am trying to convert a full 1920