A former Volkswagen executive will plead guilty to charges related to the German automaker's emissions cheating scandal from two years ago, according to a federal court.

The U.S. District Court for Eastern Michigan said Tuesday that Oliver Schmidt, the company's top emissions compliance official, will plead guilty during an Aug. 4 hearing in Detroit, according to the Detroit News.

Schmidt was charged last year with conspiracy to defraud the United States, violating the Clean Air Act and aiding and abetting wire fraud. The newspaper said it was not clear which of those charges he plans to plead guilty to.

Schmidt aided the company in committing fraud by allowing the installation of a "defeat device" in the company's line of diesel cars sold in the United States. The device, which is computer software, switched off a car's emission controls in normal driving mode, when the controls are required to be working under the law. The device turned the emission controls on only when the cars were undergoing state or federal emissions tests.

Schmidt was arrested by the FBI in January after the Justice Department filed the charges against him. Volkswagen later pleaded guilty to the emissions scam in March. The emissions scandal occurred over a decade and affected 600,000 vehicles.