How to get a new remote to work with my box

How do I get a new remote to work with my switch box.