Santa Barbara County Judge Donna Geck ordered the Boy Scouts of America to turn over personnel files dating back to 1971.
Friday morning's ruling means the plaintiff's attorney will be able to use the files as evidence in a civil lawsuit set to begin on Oct. 6.
But the files won't be made public anytime soon.
Attorney Tim Hale said he had copies of the files but his opponents would not admit they were authentic.
The attorney for the Boy Scouts could not be reached to comment.
The case began in criminal court when a 13-year-old Boy Scout accused his 400 pound troop leader, Al Stein, of molesting him at a Christmas tree lot in 2007.
Stein, a volunteer for Troop 36 in Goleta, served jail time after pleading no contest to charges involving two boys from the troop.
The Meagan's Law website shows that Klein, 36, is a registered sex offender living in Salinas in Monterey County.