Let X be a separable Banach space endowed with a non-degenerate centered Gaussian measure μ. The associated Cameron-Martin space is denoted by H. Let ν=e−Uμ, where e−U is a sufficiently regular weight and U:X→R is a convex and continuous function. In this paper we are interested in the W2,2 regularity of the weak solutions of elliptic equations of the type \[\lambda u-L_\nu u=f,\] where λ>0, f∈L2(X,ν) and Lν is the self-adjoint operator associated with the quadratic form \[(\psi,\varphi)\mapsto \int_X\left\langle\nabla_H\psi,\nabla_H\varphi\right\rangle_Hd\nu\qquad\psi,\varphi\in W^{1,2}(X,\nu).\]