Set-ADuser in the Notes field (Telephones Tab)

Welcome Forums General PowerShell Q&A Set-ADuser in the Notes field (Telephones Tab)

  • This topic has 4 replies, 3 voices, and was last updated 1 month ago by
    Participant
    .
Viewing 3 reply threads
  • Author
    Posts
    • #251291
      Participant
      Topics: 1
      Replies: 2
      Points: 16
      Rank: Member

      Hi everyone!

      Does someone know how to write on a new line in the Notes field ?

      When I go for “Set-ADUser -Identity $Login -Replace @{info=’XX YY’}”, I have XX and YY on the same line, is there an option which can put YY on a new line ?

      The goal is to have in the Notes field :

      XX

      YY

      Instead of : XX YY

      Thanks for the help!

      Jimmy

    • #251321
      Participant
      Topics: 0
      Replies: 81
      Points: 362
      Helping Hand
      Rank: Contributor

      You can use a line feed character in your string:

       

      • #251333
        Participant
        Topics: 1
        Replies: 2
        Points: 16
        Rank: Member

        Already tried and the result in the Notes field is XXYY on the same line :/

    • #251342
      Participant
      Topics: 7
      Replies: 2458
      Points: 6,439
      Helping Hand
      Rank: Community MVP

      Have you tried to search for it? …. it took me 30 seconds! 😉

      https://community.spiceworks.com/topic/1963606-how-to-add-multiple-lines-when-using-setaduser

    • #251348
      Participant
      Topics: 1
      Replies: 2
      Points: 16
      Rank: Member

      Of course I’ve searched for it, just found solutions which not working 🙂

      It works with n and r together, I’ve only tried separately ..

      Thanks for your help Olaf!

Viewing 3 reply threads
  • You must be logged in to reply to this topic.