A former NYPD official has pleaded guilty to illegally diverting police resources.

Ex-Deputy Chief Michael Harrington entered the plea in Manhattan federal court on Thursday to a charge of misapplication of property valued at $5,000 or more.

His plea deal with prosecutors recommends he be sentenced to no more than six months in prison, if at all. His lawyer, Andrew Weinstein, noted afterward that bribery charges the 52-year-old Staten Island resident once faced will be dismissed.

Sentencing is set for June 11.

Harrington admitted arranging services including a police escort for a funeral, counterterrorism protection at a Midtown Manhattan synagogue at Jewish holidays, and for disabled children to observe NYPD training.

This was allegedly for the personal benefit of his friend, Jeremy Reichberg, a private citizen, his friends, and their associates, including Jona Rechnitz, who pleaded guilty and is cooperating with the government. Reichberg and Rechnitz have donated to Mayor Bill de Blasio in the past.

Reichberg and another co-defendant, former NYPD Deputy Inspector James Grant, are scheduled to go on trial April 30 for honest services fraud, bribery, and conspiracy charges.