A method and system for providing customer premise equipment (CPE) code to one or more pieces of CPE in a cable system having a national code repository (NCR) in communication with a number of headend units, wherein the headend units deliver code received from the NCR to the one or more pieces of CPE.