During President John Adams's administration (1797–1801), he also appointed McHenry as his Secretary of War, as he had decided to keep the newly established institution of the presidential cabinet intact.