Copying all extensionattributes from one user to another

Welcome Forums General PowerShell Q&A Copying all extensionattributes from one user to another

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

      We use a lot of extensionAttributes in my AD environment and wanting a simple command to copy all from one user to another so they are not missed or typed wrong  when creating a new user. Below is how my mind sees it working but cant quite figure it out.

       

      Get-ADUser [USER] -Properties * | select extensionAttribute* | ForEach-Object ……

    • #198422
      Participant
      Topics: 4
      Replies: 1908
      Points: 4,259
      Helping Hand
      Rank: Community Hero

      Set-ADUser has a so called Instance method (Parameter set -Instance). Please read the complete help including the examples to learn how to use it. It’s explained in the first paragraphs and in example #5.

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