PowerShell and SharePoint

Welcome Forums General PowerShell Q&A PowerShell and SharePoint

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

      Hi

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

       

      Thank you.

    • #270190
      Participant
      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.