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 …