PowerShell and SharePoint

Welcome Forums General PowerShell Q&A PowerShell and SharePoint

Viewing 1 reply thread
  • Author
    • #270107
      Topics: 1
      Replies: 0
      Points: 11
      Rank: Member


      How do I assign $User to my field ($item[“MySharePointName”])?
      $User = Get-MsolUser -SearchString “test” | Select UserPrincipalName -ExpandProperty UserPrincipalName


      Thank you.

    • #270190
      Topics: 17
      Replies: 1869
      Points: 3,631
      Helping Hand
      Rank: Community Hero

      The post is a bit vague. $item appears to be a HashTable, so emulating that $User returns ‘Foo’, you would assign it like this:

Viewing 1 reply thread
  • You must be logged in to reply to this topic.