In this paper, we construct a global repair technique for the finite element scheme of anisotropic diffusion equations to enforce the repaired solutions satisfying the discrete maximum principle. It is an extension of the existing local repair technique. Both of the repair techniques preserve the total energy and are easy to be implemented. The numerical experiments show that these repair techniques do not destroy the accuracy of the finite element scheme, and the computational cost of the global repair technique is cheaper than the local repair technique when the diffusion tensors are highly anisotropic.