In the LOTR books, Théoden puts Éowyn in charge of Edoras before the Battle of the Hornburg (Helm’s Deep).