Re-joining a computer to domain

im installing a new OS on a company computer and i need to configure the same settings and users on the new pc im thinking these steps

  1. remove the pc from and start installing the new OS
  2. configure a new user and give the same settings as the previus one
  3. Connect it to the domain user acc
    im an intern and all of this is new so im looking for some tips on what path should i take
    thank u in advance