A captain in the department, who had moonlighted as a security guard for CBS, disclosed to the network information about a confidential complaint made in 2017 against the C.E.O.When the New York attorney general’s office announced this week that the former CBS chief executive Leslie Moonves and CBS’s parent company, Paramount Global, had agreed to pay $9.75 million after a state investigation found that they had concealed allegations of sexual misconduct against him, the news was accompanied by another revelation. The account from the office of Letitia James also made public how Mr. Moonves, who stepped down from CBS in 2018 after multiple misconduct allegations, and other network officials worked with a captain in the Los Angeles Police Department to suppress details of a formal sexual assault complaint against the entertainment titan. The complaint was filed with the department in 2017 by Phyllis Golden-Gottlieb, who had worked with Mr. Moonves decades earlier.The L.A.P.D. said this week that it had begun an investigation into the now retired captain’s conduct. But the circumstances surrounding the officer’s actions and Mr. Moonves’s eventual downfall, much of which has not previously been detailed publicly, highlight the powerful entertainment industry’s attempting to use any means at its disposal, including relationships with law enforcement, to try and keep allegations of misconduct quiet. And that can be especially true when the allegations involve a “V.I.P.,” as the Los Angeles police described Mr. Moonves in a referral to the county district attorney regarding the accusation, which was viewed by The New York Times.This account is based on numerous interviews, including with Ms. Golden-Gottlieb and Gil Schwartz, the former head of corporate communications for CBS; confidential notes of interviews of Mr. Moonves by CBS lawyers; a person directly familiar with how Ms. Golden-Gottlieb’s complaint was handled by the police; and documents obtained by the New York attorney general’s office. It is detailed in a forthcoming book by these two reporters, “Unscripted: The Epic Battle for a Media Empire and the Redstone Family Legacy,” to be published by Penguin Press in February. The L.A.P.D. declined to comment for this article.In November 2017, a month after sexual assault allegations against Harvey Weinstein exploded into public view, Ms. Golden-Gottlieb was watching late-night TV at her home in the Miracle Mile neighborhood of Los Angeles. Ms. Golden-Gottlieb, then 82, was a veteran television producer who had given up her entertainment career years earlier to teach special-needs children.“For those of you tuning in to see my interview with Louis C.K. tonight, I have some bad news,” Stephen Colbert said that night on CBS’s “The Late Show with Stephen Colbert.” Louis C.K. had canceled his appearance after The New York Times published an article in which five women described him committing acts of sexual misconduct.For Ms. Golden-Gottlieb, the revelation was the latest painful reminder of her time at Lorimar in the 1980s, when she was in charge of sitcom development. She had her own stories to tell, and as she sat on her sofa in front of the television, she decided to take action that very night — not by calling a reporter but by filing a police complaint.At first, Ms. Golden-Gottlieb did not know where to go, but she quickly found the address for the Hollywood police station, just south of Sunset Boulevard on North Wilcox.Ms. Golden-Gottlieb told the officer on duty that she had worked with Mr. Moonves while she was at Lorimar and he was the younger, fast-rising head of movies for television. One day in 1986, she said, Mr. Moonves invited her to lunch. They got in his car, and he drove her not to a restaurant, as she was expecting, but to a secluded area. There he parked, unzipped his pants, grabbed her head and forced it onto his erect penis until he ejaculated.Two years later, she said she was in his office when Mr. Moonves excused himself to get a glass of wine. When he returned, his pants were down. She ran from the room.The next day, he berated her, then threw her against a wall. She fell to the floor and couldn’t get up. She lay there crying.That was the story she told the police. She requested confidential treatment, but her complaint did not stay confidential for long.The desk officers working that night had no idea who Mr. Moonves was. But, according to a person directly familiar with how the complaint was handled, a senior watch commander recognized Mr. Moonves’s name and alerted Cory Palka, a veteran police captain for the precinct, because there was a notification protocol regarding celebrities.Mr. Palka moonlighted as a security officer for CBS and worked for the network at the Grammy Awards show from 2008 to 2014. He knew and liked Mr. Moonves. Not long after Ms. Golden-Gottlieb’s visit to the police station, Mr. Palka called Ian Metrose, the head of special events for CBS, and left a message.“Hey, Ian, it’s Cory Palka,” he said in the message, which was included in the attorney general’s report. “I know we haven’t talked in a while. I am a captain at L.A.P.D. Hollywood. Somebody walked in the station about a couple hours ago and made allegations against your boss regarding a sexual assault. It’s confidential, as you know, but call me, and I can give you some of the details and let you know what the allegation is before it goes to the media or gets out. So, all right, talk to you after a while. Bye.”Mr. Metrose promptly alerted his boss, Mr. Schwartz, who recalled in a later interview that he was shocked. Reporters from several outlets, including The Washington Post and The New York Times, had been calling him about rumors involving possible allegations against Mr. Moonves. But Mr. Moonves had earlier assured Mr. Schwartz that CBS had nothing to worry about.Earlier that month, Mr. Schwartz heard that Ronan Farrow of The New Yorker, whose reporting had helped bring down Mr. Weinstein, was making calls about Mr. Moonves. Mr. Schwartz braced himself for more. But he heard nothing. But a police report was a reportable fact. Mr. Schwartz told Mr. Metrose to get a copy, and Mr. Palka obliged, even though the report was marked “confidential” in three places. (Mr. Schwartz died in 2020, and Ms. Golden-Gottlieb in 2022. Mr. Palka did not respond to a message left on his cellphone on Thursday. CBS declined to comment and also said Mr. Metrose declined to comment.)The incidents in the report were too old to prosecute Mr. Moonves, but Ms. Golden-Gottlieb’s allegations were graphic. If the contents of a formal police complaint became public, it could be a public relations nightmare for CBS, especially in the early days of the #MeToo movement. It was a Saturday, but Mr. Schwartz called Mr. Moonves, who was at his eight-year-old son’s soccer game.Mr. Schwartz outlined the allegations.“That’s preposterous,” Mr. Moonves responded, according to Mr. Schwartz’s recollection of the conversation.“Do you know the woman?” Mr. Schwartz asked.Mr. Moonves told Mr. Schwartz that he did, that he’d had consensual sex a few times with Ms. Golden-Gottlieb and that they had been “friendly before, during and after.”Mr. Schwartz didn’t want to hear much more, in case he got calls from reporters. That way he could honestly say he didn’t know anything.Mr. Schwartz assured Mr. Moonves that he didn’t see any immediate threat. The incidents were so old that the case would never be brought to court. None of them happened while Mr. Moonves was at CBS. Still, there was always the risk that the allegations could become public. Mr. Schwartz told Mr. Moonves that he had better notify a CBS board member so that there would be no surprises.Leslie Moonves resigned from CBS in 2018 after multiple women made allegations of sexual misconduct against him.Evan Agostini/Invision, via Associated PressMr. Moonves promised he would, though he did not do so until much later, when questioned by a lawyer representing directors on the board. A spokesman for Mr. Moonves declined to comment this week.Mr. Schwartz drafted a response to potential media inquiries. If asked, he would confirm that CBS was aware of a police investigation of Mr. Moonves, say that the CBS board had been notified and nothing more. Mr. Schwartz alerted his press team over the weekend, sending an email to one: “Watch for messages and don’t miss any please. Will explain later. I wouldn’t bother you if this wasn’t serious.”Time passed, and no reporters brought it up. Mr. Schwartz heard from numerous people who were contacted by reporters who had heard more rumors about Mr. Moonves, but none had offered any concrete allegations. But Mr. Moonves wasn’t taking any chances. Without telling Mr. Schwartz, he hired Blair Berk, a criminal defense lawyer. Ms. Berk got in touch with Mr. Palka and asked him about the police report. On Nov. 15, Mr. Palka texted Mr. Metrose and Ms. Berk to say he’d “make contact & admonish the accuser tomorrow about refraining from going to the media and maintaining ‘her’ confidentiality.”He added that they would “be the first and only point of contact” regarding the investigation. Ms. Berk did not respond to a request for comment this week.Ten days later, Mr. Moonves arranged to meet with Mr. Palka and Mr. Metrose at a Westlake Village restaurant and vineyard. Mr. Moonves stressed that he wanted the investigation closed, and they discussed contacting other public officials.But that proved unnecessary. On Nov. 30, according to the attorney general’s report, Mr. Metrose told Mr. Moonves that he had heard from Mr. Palka that they could stop worrying: “It’s a definite reject,” Mr. Metrose said, adding that there were no witnesses or corroborative evidence.In the police referral to the Los Angeles County district attorney, Ms. Golden-Gottlieb was identified only as Jane Doe. Mr. Moonves was formally designated as a “V.I.P.” The assistant district attorney reviewing the matter noted, “The applicable statutes of limitation have expired as to all three incidents.”That was the end of it, or so it seemed.Less than a year later, Mr. Farrow reported in The New Yorker on several allegations against Mr. Moonves, including from Ms. Golden-Gottlieb. On Sept. 9, 2018, in his second of two articles on Mr. Moonves, Mr. Farrow revealed the existence of the police report. That same day, Mr. Moonves resigned from CBS.Mr. Palka wrote Mr. Metrose shortly after: “I’m so sorry to hear this news Ian. Sickens me. We worked so hard to try to avoid this day. I am so completely sad.”Two days later, he wrote Mr. Moonves directly: “Les -I’m deeply sorry that this has happened. I will always stand with, by and pledge my allegiance to you. You have embodied leadership, class and the highest of character through all of this. With upmost respect.” More