Catalyzes the formation of undecaprenyl-PP-N-acetylglucosamine. Involved in the synthesis of anionic cell-wall polymers as it mediates the initiation of the linkage unit formation that appears to be common to the two types of teichoic acids attached to the peptidoglycan of B.subtilis; may also be involved in teichuronic acid biosynthesis (Probable). di-trans,octa-cis-undecaprenyl phosphate + UDP-N-acetyl-alpha-D-glucosamine = N-acetyl-alpha-D-glucosaminyl-di-trans,octa-cis-undecaprenyl diphosphate + UMP Cell wall biogenesis; poly(glucopyranosyl N-acetylgalactosamine 1-phosphate) teichoic acid biosynthesis. Cell wall biogenesis; poly(glycerol phosphate) teichoic acid biosynthesis. Belongs to the glycosyltransferase 4 family.