His last name wasn’t Clinton, so the full wrath of the feds came down hard on ex-CIA Director John Deutch when he was caught storing classified material on his home computers nearly two decades ago.

The US Justice Department investigated Deutch and determined the top spook broke the law for doing essentially the same thing Hillary Clinton did when she used her private e-mail server to conduct classified government business.

While Clinton got a pass, Deutch had agreed to plead guilty to a misdemeanor charge of mishandling classified information in a deal with the feds — but beat the rap when he got a last-minute pardon from then-President Bill Clinton in January 2001, right before he left office.

The pardon spared Deutch from any criminal charges for mishandling top-secret information on his home computer.

It was later revealed that Clinton had not even consulted CIA Chief George Tenet or any other CIA officials on the decision to pardon Deutch, who served from 1995 to 1996.

Deutch stored the secret data on a hard drive and memory cards — data that included multiple memos to the president that “contained information at the Top Secret/Codeword level,” an inspector general’s report had concluded at the time.

Newsweek reported that the classified data included documents related to Iraq and a 1996 terrorist bombing in Saudi Arabia that killed 19 US troops.

Deutch — a professor emeritus at Massachusetts Institute of Technology, where he taught chemistry — came clean in a statement to the press, and was ready to face the music.

“While serving as Director of Central Intelligence I erred in using CIA-issued computers that were not configured for classified work to compose classified documents and memoranda,” Deutch said at the time.