Im an ex Audi Diagnostic Tech.
What to do is the following:
- Unlock the car
- Open the bonnet
- Ensure all windows and doors are up/closed including the sunroof
- Ensure the key is not in the car ignition
- Pull the earth battery terminal off and leave off for 2 minutes to allow the capacitors to loose their power
- (Not necessary) just before putting the earth terminal back on try to "unlock" the car again, this will ensure no charged up electricity is left
- Put the earth terminal on firmly and secure it again, your alarm may go off, just lock/unlock the car - it should silence it (may need to open door/put ignition on)
- If the alarm doesnt go off wait 2 minutes to allow the car's systems to reboot (just like your PC)
- Turn ignition on - but dont start
- Go in the car and do this 1 window at a time:
Press and hold the down button for the Drivers window and dont let go even when it gets to the bottom, hold it for an additional 5 seconds when it reaches the bottom then put it back up and hold it again when it reaches the top for 5 seconds.
- Test the drivers window if it will go up/down itself with the one touch down/one touch up feature (it should)
- Repeat for all windows if applicable > Passenger Front, Drivers Rear, Passenger Rear.
- Then do the same with your sunroof > Press and hold the open button till it stops, hold for 5, close it and keep holding the button for an additional 5 till it stops.
- Exit the car and lock the car using the remote key button
- Open the car and hold to open all the windows/sunroof.
- The sunroof should open. If not, it may require Audi's vagcom to program it (literally a 30 minute job) (unless a faulty sensor in the BCM (Body control module)
If it doesnt work, phone audi, they may have an alternative solution as cars do run different software, if not see what the charge is, or just live with it
Hope this helps, I dont recommend programming your own car if you dont have the technical know how, you may potentially "brick" your car like a phone and thats at least a £500 repair straight away.
- Ryan
Edit: Just noticed the "sun shade" you may need to program this too before the sunroof, the shade is not functioning at all - the sunroof will refuse to move as per the programming protocol in the BCM