Catalyzes the phosphorylation of D-glucose to D-glucose 6-phosphate using ATP as the phosphate donor. Can also phosphorylate 2-deoxyglucose, with lower efficiency. ITP can also serve as a phosphoryl donor