After former M, Bernard Lee's death in 1981, the producers decided to hire actor Robert Brown to continue the role in the Bond films. Starting with 1983's Octopussy, Brown would continue to play the character for the remainder of the Roger Moore era and both of Timothy Dalton's films. He would later be succeeded by Judi Dench in the 1995 film GoldenEye.
It is never explicitly stated onscreen whether Robert Brown's character is intended to be the same person played by Bernard Lee, or if he was intended to be Admiral Hargreaves, the role played by Brown in 1977's The Spy Who Loved Me, though the later Bond books retain Messervy. One thing to note is that in the pre-title credits to The Living Daylights, M's insignia suggests he is a Rear Admiral, which would mean if he was Hargreaves then he was demoted since Hargreaves' insignia in The Spy Who Loved Me suggests he is a Vice Admiral.
As played by Brown, M lacks a sense of humor and has absolutely no tolerance whatsoever for Bond's antics. Brown's M came off tougher than his predecessor, wasting no time to revoke Bond's licence to kill in the film Licence to Kill when Bond went off on a vendetta. This matched the tone of his final two films as well as Timothy Dalton's incarnation of Bond.
Despite this formality, also Brown's M has a strong liking for 007; after Bond rushes off after the revoke of his 00-Licence, M stops an agent from planning on shooting Bond as there were in his words "too many people" and just says "God help you, commander".
M gives James Bond his briefing surrounding a ring of fake Fabergé Eggs, telling Bond of such an egg up for auction; "Property of a Lady". He later ventures into West Berlin to discuss Bond's situation and give 007 further instructions.
A View to A Kill
While Sir Fredrick Gray is initially concerned about MI6 launching an investigation into Max Zorin's operations, M gives Bond his permission. M later shows his annoyance to Bond about the his reckless antics to follow the Eiffel Tower assassin (May Day) without generating any leads.
The Living Daylights
M organises a training exercise for his 00 Agents, and is seen giving a briefing in a makeshift office inside a cargo plane high above the Rock of Gibraltar. Later M scoffs at Bond's feelings that the mission to kill General Leonid Pushkin could be more than it seems, telling him that if he is not willing to take on the assignment, he would get 009 to replace him.
Licence to Kill
M is very abrupt and harsh with Bond when he confronts him in Florida about the neglect of his duties, due to his investigations into Felix Leiter's mutilation. After M harshly criticizes Bond for lack of professionalism and objectivism, Bond hands in his resignation, where M quickly remarks, "We're not a country club 007!" and immediately revokes his licence to kill. He reminds Bond that he is still obliged to the official state secrets act before Bond escapes.
His is again seen in London criticizing Miss Moneypenny for making typing errors and for not putting her personal feelings for Bond aside whilst he went rogue. Later, after Bond killed drug lord, Franz Sanchez, Leiter informs Bond that M had re-admitted him to MI6.