Antimicrobial dry cow therapy (DCT) is an important component of mastitis control programs aimed to eliminate existing intramammary infections and prevent the development of new ones during the dry period. However, to what extent the microbiota profiles of different niches of the udder change during the dry period and following administration of DCT remains poorly understood. Therefore, the main objective of the present study was to qualitatively evaluate dynamics of the microbiota of teat canal (TC) and mammary secretions (i.e., milk and colostrum) of healthy udder quarters subjected to DCT using a long-acting antimicrobial product, containing penicillin G and novobiocin, in combination with internal teat sealant. To this end, TC swabs (n = 58) and their corresponding milk (n = 29) and colostrum samples (n = 29) were collected at the time of drying off and immediately after calving from clinically healthy udder quarters of Holstein dairy cows from a commercial dairy farm. All samples were subjected to DNA extraction and high-throughput sequencing of the V1-V2 hypervariable regions of bacterial 16S rRNA genes. Overall, shifts were more pronounced within the microbiota of mammary secretions than the TC. In particular, microbiota of colostrum samples collected immediately after calving were less species-rich compared with the pre-DCT milk samples. Proportions of several bacterial genera belonging to the phylum Proteobacteria, including Pseudomonas, Stenotrophomonas, and unclassified Alcaligenaceae, were enriched within the microbiota of colostrum samples, whereas Firmicutes genera, including Butyrivibrio, unclassified Clostridiaceae, and unclassified Bacillales, were overrepresented in pre-DCT milk microbiota. Apart from shifts in the proportion of main bacterial genera and phyla, qualitative analysis revealed a high degree of commonality between pre-DCT and postpartum microbiota of both niches of the udder. Most importantly, a considerable number of bacterial genera and species commonly regarded as mastitis pathogens or opportunists (or both), including Staphylococcus spp., unclassified Enterobacteriaceae, and Corynebacterium spp., were shared between pre-DCT and postpartum microbiota of mammary secretions. Percentage of shared bacterial genera and species was even higher between pre-DCT and postpartum microbiota of TC samples, suggesting that the DCT approach of the present study had limited success in eliminating a considerable proportion of bacteria during the dry period.