At the start of World War II, the 24th Infantry was stationed at Fort Benning as school troops for the Infantry School. They participated in the Carolina Maneuvers of October - December 1941. During World War II, the 24th Infantry fought in the South Pacific Theatre as a separate regiment. Deploying on 4 April 1942 from the San Francisco Port of Embarkation, the regiment arrived in the New Hebrides Islands on 4 May 1942. The 24th moved to Guadalcanal on 28 August 1943, and was assigned to the XIV Corps. 1st Battalion deployed to Bougainville, attached to the 37th Infantry Division, from March to May 1944 for perimeter defense duty. The regiment departed Guadalcanal on 8 December 1944, and landed on Saipan and Tinian on 19 December 1944 for Garrison Duty that included mopping up the remaining Japanese forces that had yet to surrender. The regiment was assigned to the Pacific Ocean Area Command on 15 March 1945, and then to the Central Pacific Base Command on 15 May 1945, and to the Western pacific Base Command on 22 June 1945. The regiment departed Saipan and Tinian on 9 July 1945, and arrived on the Kerama Islands off Okinawa on 29 July 1945. At the end of the war, the 24th took the surrender of forces on the island of Aka-shima, the first formal surrender of a Japanese Imperial Army garrison. The regiment remained on Okinawa through 1946.

Answer this question based on the article: What commands were the regiment assigned to in 1945?
Pacific Ocean Area Command