Below are programming instructions for the keyless entry remotes on various BMW vehicles:

BMW