Human Immunodeficiency Virus 1 (HIV-1) infection frequently results in HIV-1 Associated Neurocognitive Disorders (HAND), and is characterized by a chronic neuroinflammatory state within the central nervous system (CNS), thought to be driven principally by virally-mediated activation of microglia and brain resident macrophages. HIV-1 infection is also accompanied by changes in cerebrovascular blood flow (CBF), raising the possibility that HIV-associated chronic neuroinflammation may lead to changes in CBF and/or in cerebral vascular architecture. To address this question, we have used a mouse model for HIV-induced neuroinflammation, and we have tested whether long-term exposure to this inflammatory environment may damage brain vasculature and result in rarefaction of capillary networks. In this paper we describe a method to quantify changes in cortical capillary density in a mouse model of neuroinflammatory disease (HIV-1 Tat transgenic mice). This generalizable approach employs in vivo two-photon imaging of cortical capillaries through a thin-skull cortical window, as well as ex vivo two-photon imaging of cortical capillaries in mouse brain sections. These procedures produce images and z-stack files of capillary networks, respectively, which can be then subjected to quantitative analysis in order to assess changes in cerebral vascular architecture.