Mr. Ahmadinejad has filled crucial ministries and other top posts with close friends and allies who have spread ideological and operational support for him nationwide. These analysts estimate that he has replaced 10,000 government employees to cement his loyalists through the bureaucracies, so that his allies run the organizations responsible for both the contested election returns and the official organs that have endorsed them…

Today, these allies, many of them former midlevel Revolutionary Guard officers in their 50s, run the Interior, Intelligence and Justice Ministries. They also include the commander of the Basij popular militia, the head of the National Security Council and the head of state-run broadcasting. They are aligned with another member of their generation who has emerged as the most important figure in the Khamenei camp, the spiritual leader’s son, Mojtaba Khamenei.

Mr. Ahmadinejad has also changed all 30 of the country’s governors, all the city managers and even third- and fourth-level civil servants in important ministries like the Interior Ministry. It was Interior that announced that Mr. Ahmadinejad had won the June 12 election with just 5 percent of the votes counted, analysts pointed out, and it is the Intelligence Ministry that has been rounding up scores of supporters of the reform candidate, Mir Hussein Moussavi, and other dissidents.