We consider an evolution of a smooth measure μ related to parabolic and hyperbolic differential equations in infinite dimensions. In both cases conditions under which the initial measure is invariant with respect to corresponding evolution are given. For the case of parabolic equation we obtain conditions of the absolute continuity and a formula for the density