Sunroof Control Module Programming and Setup: Notes
WARNING: This page does not describe the selected car, but rather 6 other vehicles, including the 2015 GMC Yukon XL, 2015 GMC Yukon, 2015 Chevrolet Tahoe, 2015 Chevrolet Suburban, and 2015 Cadillac Escalade ESV. However, it is still accessible from the selected car via links, so may be relevant.
When replacing the sunroof motor/control module, the sunroof motor/actuator initialization/teach procedure must be followed.