when you want to program the switch just go to tdsweb, purchase the $40 subscription, this will activate your vin for 2 years of unlimited programming.
then before you start be sure everything is plugged in and ready to go
get your laptop out and the tech2 and be sure all the cables are good-n-tight and position everything so you don't have to move it.
for good measure plug in a 12v dc supply to the tech2 and plug that into a wall socket so it doesn't have to depend on the car battery for power.
plug in your laptop power supply to the wall so it doesn't depend on the battery either.
then open up tdsweb on your laptop, run the java software through your web browser from tdsweb.
it will install about 4 or 5 small java programs/updates, then you can click ok and proceed
at the main menu it will give you some choices such as "tech2 passthru" this is what you will want to select.
follow the instructions to the T
it will tell you to turn on your tech2, be sure the ignition key is set to run (engine off)
then you will be instructed to read the bcm calibrations (from the tech2) and then return to the tds web app on the laptop
from there you will be able to navigate the tds web app to update the calibrations you want, there may be numerous choices but you should be able to determine what is what via the app, it will have check boxes and multiple choices and descriptions, most of them are defined by rpo codes but should have some type of definition, once you have all the check boxes you want selected it will let you proceed.
then it will tell you programming can take anywhere from 10 minutes to more than a hour (this is why you want everything plugged into wall power)
then just let it do it's thing, as it goes along it will beep and give a dotted line as it progresses.
when it's finished it will say it's competed and you can just leave it and cycle the key and test your mirror switch.
if all goes well your done.