During the Spanish–American War, Bailey served at Fort San Jacinto, Texas as commander of Battery G, 1st Artillery Regiment, and then at Fort Preble, Maine, where he commanded a battery of the 7th Artillery Regiment. He was promoted to captain in 1899.
Post-Spanish–American War
After the war, Bailey serve at Sandy Hook Proving Ground until 1902. From 1902 to 1904 he was stationed at Fort Totten, New York and assigned to disburse funds on programs for acquiring and employing mines for defense U.S. harbors, as well as serving on a board that conducted experiments with using torpedoes for coastal defense. In 1905 he was promoted to major and assigned as commander of the Artillery District of New Orleans at Jackson Barracks. He subsequently served on the General Staff at the War Department and as Secretary of the Army War College. From 1908 to 1911, he was senior assistant to the Chief of Coast Artillery. He was promoted to colonel in 1911 and brigadier general in 1913. From 1911 to 1913, Bailey commanded the 1st Provisional Coast Artillery Regiment at Fort Crockett, Texas. In 1913 he was assigned to command the coast defenses of Puget Sound, Washington, after which he returned to Fort Totten as commander of the North Atlantic Coast Artillery District. From 1914 to 1917 he commanded the coastal defenses of Manila and SubicBays in the Philippines.
World War I
On August 5, 1917, Bailey was promoted to major general in the National Army and assigned to command the Philippine Department. In 1918 he was assigned as commander of the 81st Division, which he commanded in France from 1918 to 1919.
Post-World War I
In 1919, Bailey was selected to command the Middle Atlantic Coast Artillery District at Fort Totten, and returned to his permanent rank of brigadier general. He then commanded the 7th Division at Fort Meade, Maryland. He was again promoted to major general, and commanded the Third Corps area at Fort Howard, Maryland until retiring in 1922.
He suffered a hip fracture in a fall in July 1945 and never fully recovered. He died on September 21, 1946 at his home in Jamestown, New York. Bailey was buried at Lake View Cemetery in Jamestown.
Family
In 1885, Bailey married Mary M. Dodge. They were the parents of two daughters, Omira and Merry. Omira Bailey was the wife of Army Colonel Alexander Wheeler Chilton, and Merry was the wife of Army Colonel Charles Lewis Gandy. Bailey's first wife died in 1923. In 1924, he married Elizabeth Hegeman Bailey.