A New York judge has rejected disgraced movie producer Harvey Weinstein’s effort to throw out the most serious sexual assault charges against him.

The ruling, which was made public on Wednesday, clears the way for prosecutors to bolster their case with testimony from actress Anabella Sciorra, who alleges Weinstein raped her more than two decades ago. It also leaves open the possibility of a life sentence if he is convicted at his trial, which is set to begin Jan. 6.

JUDGE ALLOWS CONSOLIDATION OF CHARGES AGAINST HARVEY WEINSTEIN 

Weinstein’s spokesman said his lawyers didn’t have an immediate comment when reached by The Associated Press.

Weinstein has pleaded not guilty to charges he raped a woman in a Manhattan hotel room in 2013 and performed a forcible sex act on a different woman in 2006. The 67-year-old is free on $1 million bail and maintains that any sexual activity was consensual.

In recent court filings, Weinstein’s attorneys objected to two of the five counts against him — both stemming from a charge called predatory sexual assault, which carries a maximum life sentence and requires prosecutors to show a pattern of misconduct.

Weinstein’s lawyers argued those counts should be thrown out because prosecutors are choosing to use Sciorra’s allegation to show he’s a sexual predator who committed sex crimes against multiple women, even though that alleged attack predates the charge being enacted into law in 2006.

JUDGE WON'T LET HARVEY WEINSTEIN TRAVEL TO EUROPE FOR WORK 

Judge James Burke, however, ruled that such a strategy is allowed under state law. While Sciorra’s allegation is too old to be the basis for criminal charges, prosecutors can use it as part of showing a pattern of alleged predatory behavior, Burke wrote.

Weinstein’s lawyers also argued that prosecutors failed to provide enough information to defend himself against Sciorra’s allegation. On a disclosure form, prosecutors listed the approximate date of the alleged incident as “the winter season spanning 1993-1994,” and said it happened at “nighttime” in “a location in New York City.”

Burke rejected that, too, saying that prosecutors have shown they made diligent efforts to narrow down the date of the alleged rape and that Weinstein’s lawyers were previously provided with the specific location.

Sciorra, known for her work on "The Sopranos," alleges Weinstein forced himself inside her Manhattan apartment, threw her on the bed and raped her after she starred in a film for his movie studio.

JENNIFER ANISTON ACCUSES HARVEY WEINSTEIN OF 'PIGGISH BEHAVIOR,' 'BULLYING'

Sciorra did not go to the authorities because she feared reprisal from Weinstein, prosecutors said. She told her story to The New Yorker in October 2017, but prosecutors said she didn't speak with them until after Weinstein's arrest in May 2018.

Burke also rejected Weinstein’s claim that emails obtained with a search warrant from two movie studio accounts and one private account are privileged and can’t be used as evidence at trial.

In addition, Burke denied Weinstein’s demand for access to the personnel file of a police detective whose alleged witness coaching led prosecutors to drop a charge last year.

The judge further denied the defense’s request to unseal the identities of the two women whose allegations led to charges against Weinstein. And he reiterated a previous ruling that psychiatrist Dr. Barbara Ziv can take the stand as a prosecution expert in the field of sexual assault and rape trauma syndrome.

CLICK HERE TO GET THE FOX NEWS APP

Suburban Philadelphia prosecutors called Ziv as their first witness at Bill Cosby’s April 2018 trial. She told jurors that it is common for victims to be reluctant to go to police and normal for them to maintain contact with perpetrators.

She also said the use of drugs and alcohol can lead to clouded memories and prevent victims from giving a clear account of what happened to them.

In a win for Weinstein, Burke said the defense could call two experts of its own dealing in the subject of human memory.

The Associated Press contributed to this report