Cranial windows have become a ubiquitously implemented surgical technique to allow for intravital imaging in transgenic mice. This protocol describes the use of a surgical robot that performs semi-automated bone drilling of cranial windows and can help reduce surgeon-to-surgeon variability and partially mitigate thermal blood-brain barrier damage.