Washington(CNN) Gen. David Petraeus, once a widely celebrated military leader who oversaw operations in Afghanistan and Iraq and was touted as a potential presidential candidate, was sentenced to serve two years on probation and to pay an $100,000 fine on Thursday for sharing classified information with his biographer and lover, Paula Broadwell.
"Today marks the end of a two-and-a-half-year ordeal," Petraeus said outside the Charlotte federal courthouse following his sentencing. "I now look forward to moving on with the next phase of my life."
Petraeus, who resigned as director of the Central Intelligence Agency in November 2012 after the relationship became public, avoided jail time as part of a plea deal. Prosecutors agreed to not send Petraeus to jail because the classified information was never released to the public or published in the biography of him that Broadwell wrote.
Some of his supporters believe that he can recover his reputation -- and argue in some ways, he already has.
"I don't want to wallow in 2012, and luckily neither has he," said Michael O'Hanlon, a close friend of Petraeus and a scholar at the Brookings Institution.
READ: FBI agent testifies in Paula Broadwell cyberstalking case
Armed with a Ph.D, Petraeus rose to military brass and led United States Central Command and later all forces in Afghanistan as the war there petered out. He retired from the military to lead the CIA at the request of President Barack Obama in 2011. But after only about a year, Petraeus delivered Obama a resignation letter, sinking into shame as the news that his one-time chronicler was actually his lover.
Petraeus spent some time maintaining a low profile, but then began to emerge in mid-2013, accepting positions at universities and the private equity giant Kohlberg Kravis Roberts. Most of Petraeus' friends and family -- including his wife, Holly -- have been supportive of the four-star general and stood by him, friends of Petraeus said, though no Petraeus family members joined him in court on Thursday.
"The world has deemed it clear that we recognize that we're all human," said O'Hanlon.
John Duffield, a friend of Petraeus from his graduate school years at Princeton University, described the past few years as "painful to watch," especially given how much promise the general had even beyond his already impressive resume.
"It didn't seem like he had reached the apogee of his career," said Duffield, who added Petraeus may yet rehabilitate his reputation. "I don't know if it'll be relegated to a footnote, but maybe only one chapter in a lengthy book of accomplishments."
SEE: Petraeus still advises White House
That rebranding is made easier thanks to a plea deal that allowed Petraeus to escape jail time by paying $40,000 and serving two years on probation. But a federal judge on Thursday in Charlotte, North Carolina instead ordered him to pay $100,000 in order to "reflect the seriousness of the offense."
"Make no mistake: This is a serious matter," Judge David Kessler told the courtroom, adding that his actions "stood in stark contrast to the 37 years of achievement and his remarkable public service."
Petraeus pled guilty in March to one federal charge for giving 5-by-8 inch black notebooks containing some classified information to Broadwell, who wrote "All in: The Education of General David Petraeus" in 2012.
Those notebooks included notes from national security meetings, the identities of covert officers and more classified documents.
Photos: Who's who in the Petraeus scandal
Gen. David Petraeus, 60,
resigned Friday, November 9, as head of the CIA and admitted having an affair. His mistress was later identified as his biographer,
Paula Broadwell. The retired four-star general formerly oversaw coalition forces in Iraq as well as U.S. and NATO forces in Afghanistan. He and his wife, Holly, have been married 38 years and have two grown children.
Paula Broadwell, 40, is a West Point graduate raising two children with her husband Scott in Charlotte, North Carolina. Her affair with CIA Director David Petraeus
led to his resignation. She
got to know him while working on a Ph.D. dissertation about him. Alleged "jealous" e-mails she wrote anonymously to another woman, Jill Kelley, brought the affair to light, a government source told CNN.
Jill Kelley, 37, allegedly received "jealous" e-mails from Paula Broadwell, which the FBI investigated,
a government source told CNN. The probe brought the affair between Broadwell and CIA Director David Petraeus to light. Kelley and her husband, Scott, who live in Tampa, say they've been friends with the Petraeus family for more than five years. Kelley, an unpaid liaison at MacDill Air Force Base, is known in Washington's social circuit.
Gen. John Allen, 58, U.S. commander in Afghanistan,
is under investigation for allegedly sending inappropriate messages to Jill Kelley. He denies wrongdoing, according to a senior defense official. Kelley had complained about anonymous e-mails she received, which were found to be from Paula Broadwell. The FBI probe of those e-mails led to the discovery of Broadwell's affair with CIA Director David Petraeus.
Also in the mix is an FBI agent whom Jill Kelley approached about anonymous e-mails she had received. Frederick Humphries had previously sent shirtless photos of himself to Kelley, a U.S. official told CNN. Humphries passed on the information to others to investigate, the source said. The e-mails were determined to be from Paula Broadwell.
Some have characterized the agreement, in which Petraeus only pleads guilty to a misdemeanor, as too lenient.
Abbe Lowell, a lawyer who represents a government leaker currently in jail for sharing information with the media, said in a letter to the Justice Department that the deal showed a "profound double standard."
"High-level officials (such as General Petraeus, and, earlier, Leon Panetta) leak classified information to forward their own agendas (or to impress their mistresses) with virtual impunity," wrote Lowell, referencing Petraeus' predecessor as CIA director.
But Petraeus defenders have called that charge rough on him.
"It's not like he was giving this to the National Enquirer," O'Hanlon said, who nevertheless said the behavior "shouldn't have happened and shouldn't be excused."
Now, Petraeus -- who had continued to advise the current administration -- is perhaps positioning himself for a full-throated return to public leadership in the next one.
"The personal shortcomings ultimately, I would hope, will be seen as in the same light as Grant's whiskey or Eisenhower's mistress, or whatever else," said O'Hanlon, referring to the military leaders' known foibles. "The inevitable human dimensions of people who are still great Americans."
Photos: Career of former CIA Director David Petraeus
Former CIA Director David Petraeus resigned in November 2012 for what he called personal reasons after revelations that he was having an extramarital affair with his biographer, Paula Broadwell. Before his resignation, he had been a highly regarded public official, serving in the military for 37 years and taking on the roles of Commander of U.S. forces in Afghanistan and NATO International Security Assistance Force.
Petraeus served as commanding general of the 101st Airborne Division U.S. Army between 2002 and 2004 and led troops into battle when the U.S. invaded Iraq in March 2003. Pictured, Petraeus speaks with Paul Bremer, the new U.S. overseer in Iraq, during a helicopter tour of Mosul, Iraq, in May 2003.
In June 2004 Petraeus, a three-star general at the time, was tasked with overseeing the transition of power from the Coalition military authorities to the Iraqis. Pictured, Petraeus tours Kirkush Military Training Base in June 2004.
Provincial Governor Ghanem al-Basso, left, commemorates the 83rd anniversary of the establishment of the Iraqi army with Petraeus and the graduation of its new 2nd Battalion in Mosul, Iraq.
Lt. Gen. Petraeus, left, listens to President George W. Bush after Bush met with top military officials to discuss the war in Iraq in October 2005.
Gen. David Petraeus was promoted to commander of all U.S. forces in Iraq in February 2007. Pictured, Petraeus awards Purple Hearts to a wounded soldiers at the 28th Combat Support Hospital in March 2007 in Baghdad, Iraq.
Petraeus speaks with store owners in the Ghazaliya neighborhood in Baghdad in August 2007.
Petraeus, third from left, listens as President George W. Bush speaks at Al Asad Air Base in Anbar Province, Iraq, in September 2007. From the right, U.S. Ambassador to Iraq Ryan Croker, Secretary of State Condoleezza Rice and Defense Secretary Robert Gates, who arrived with Bush, look on.
Petraeus acknowledges the fans before throwing out the ceremonial first pitch of the second game of the 2008 MLB World Series between the Philadelphia Phillies and the Tampa Bay Rays in October 2008 in Tampa.
At the end of October, Petraeus was advanced to Commander of Central Command. Pictured, Petraeus and Afghan Defense Minister Gen. Abdul Rahim Wardak inspect an Afghan Guard of Honor at the Defense Ministry in Kabul on November 5, 2008. Petraeus arrived in Kabul to assess efforts against insurgents in the start of his new job, the U.S. military said.
Petraeus announced October 6 that he was diagnosed in February with early stage prostate cancer and underwent two months of radiation treatment. Pictured, the commander of U.S. Central Command meets young officers in October 2009 at Forward Operating Base Wilson in Kandahar Province, Afghanistan. Petraeus had been touring bases to meet with base commanders.
Petraeus apparently faints while testifying during a hearing before the Senate Armed Services Committee in June 2010 in Washington. Pictured, he is escorted away after the incident.
Petraeus speaks during an Assumption of Command Ceremony at the International Security and Assistance Force Headquarters in July 2010 in Kabul, Afghanistan. Following the dismissal of Gen. Stanley McChrystal, President Barack Obama named Petraeus the commander of the Afghan war and the 140,000 foreign troops serving in Afghanistan.
Britain's Queen Elizabeth meets Petraeus in March 2011. The general was still serving as commander of U.S. and NATO forces in Afghanistan.
The U.S. Senate unanimously confirmed Petraeus as the next director of the Central Intelligence Agency in June 2011. Pictured from left, Obama announces that he will nominate current CIA Director Leon Panetta as Secretary of Defense, Gen. David Petraeus as the next director of the CIA, Gen. John Allen as commander for U.S. forces in Afghanistan, and Ryan Crocker as the U.S. ambassador to Afghanistan in April 2011.
Petraeus, left, salutes his replacement as leader of the Afghanistan war, Gen. John Allen, right, and Gen. James Mattis during a change of command ceremony in Kabul, July 2011.
Petraeus retired from the military after 37 years of service before taking his new role with the CIA in August 2011. Pictured he speaks at an Armed Forces Farewell Tribute and Retirement Ceremony in his honor at Joint Base Myer-Henderson Hall in Arlington, Virginia.
Petraeus takes the oath of office as the next director of the Central Intelligence Agency from Vice President Joe Biden as Petraeus' wife Holly looks on in September 2011 in the Roosevelt Room of the White House.
CNN's Mary Kay Mallonee and Kevin Bohn contributed to this report.