1 line Script to copy AD membership between users

Just copy and paste: It will copy all membership groups from 1 user to another import-Module ActiveDirectory;$copy = Read-host "Enter username to copy from: ";$paste = Read-host "Enter username to copy to: ";get-ADuser -identity $copy -properties memberof | select-object memberof -expandproperty memberof | Add-AdGroupMember -Members $paste;