My solution is easy. Make them resign.
A TAD assignment for three or four months to the new office in Severeboondocks Nigeria or Russia or Moldovia should induce resignation
You have the right idea however, anyone opposing the Trump agenda for the military gets orders to sunset postings. Let their careers die on the vine. By the end of Trumps second term we will see more lions and fewer lambs in charge. At least that is the hope.