To program the remote to control the HR22, you leave the slide switch in the DirecTV position, then press and hold "Mute" and "Select" until the DirecTV light flashes 3 times. Then enter the code "00001" and press select...this should restore control of the HR22, which will allow you to go to the setup menu and re-enter the codes for your TV and associated equipment.