We consider the static vacuum Einstein spacetime when the spatial factor is conformal to a n-dimensional pseudo-Euclidean space. The most general ansatz that reduces the resulting system of partial differential equations to a system of ordinary differential equations is completely described. We obtain the entire set of solutions of the reduced system, where the classical Schwarzschild solution arises as a particular solution. In addition, we show that the Riemannian spatial factors associated to these solutions are foliated by parallel hypersurfaces of constant mean curvature.