 Allan Pinkerton and Lafayette C. Baker handled similar operations for their respective regional commanders.All of those operations were shut down at the end of the Civil War in 1865.In 1885, the Army established the Military Intelligence Division.