John Cahill, a former advisor to Gov. George Pataki, was formally and unanimously nominated on Wednesday by New York Republicans to run for attorney general against Democrat Eric Schneiderman.

Cahill, who is currently a partner with Pataki at his law firm, blasted the incumbent Schneiderman for not doing enough to police corruption in Albany and helping set up road blocks to allow the natural gas drilling process known as hydrofracking.

And he knocked Schneiderman for his office signing off on an agreement for more than $100,000 in confidential settlement money to women who had accused Assemblyman Vito Lopez of sexual harassment.

“The fact is, we wouldn’t need a Moreland Commission if we had a real attorney general,” Cahill told Republican delegates and county chairs in his speech accepting the nomination. “The root cause of corruption are the criminals who disguise themselves as public servants.”

He dubbed his Democratic opponent “Silent Schneiderman” for failing to act on key issues ranging from education, to drug abuse and energy development.

Schneiderman is only heard from, Cahill said, “when he’s killing jobs” in sectors like financial services.

Cahill, in the speech, made a joke about President Obama’s visit to the nearby Tappan Zee Bridge, saying the visit showed it was “time for some traffic problems in Westchester” — a reference to the Chris Christie George Washington Bridge controversy.

Cahill also called for an expansion of charter schools across the state, as well as end to the pattern of attorneys general running for governor.

“Eric Schneiderman is just another aspiring governor. This must end and I will end it,” Cahill said.

Though he is a first time candidate, Cahill will be able to tap into the formidable Pataki-era fundraising machine that propelled the last statewide Republican officeholder to three terms.

In a sign that Pataki supports the candidacy, the former governor made a surprise visit to the convention to voice support for Cahill.

At the same time, Cahill is expected to receive support from a “super PAC” that can raise unlimited funds on his behalf backing his campaign.

Still, Cahill’s challenge is a stiff one.

Schneiderman has strong allies in the liberal advocacy community, which helped him clear a crowded five-way primary in 2010 and then go on to defeat his Repubican opponent, Staten Island District Attorney Dan Donovan.

Schneiderman allies are already knocking Cahill’s record in the Pataki administration on women’s access to contraceptives, as well his ties to the energy industry.

Cahill has rebutted the attacks, especially on abortion, but noting that he’s a practicing Catholic, but will uphold existing laws.

Updated: A spokesman for the Schneiderman campaign responds.

“Whether it’s going after fraudulent financial practices, prosecuting more than 40 people in public corruption cases, or helping keep 25,000 families from losing their homes, Attorney General Schneiderman has spent his entire career working to ensure equal justice under the law for all New Yorkers. He looks forward to talking about his record with voters in the coming months,” said the spokesman, Peter Ajemian.