Upon his return stateside, Foster is promoted to captain and was assigned to the Logistics Plans Division of the Office of the Chief of Naval Operations. He was later transferred to the recently created Office of General Inspector of the Navy under Admiral Charles P. Snyder. He is later promoted to rear admiral and appointed assistant naval inspector general in August 1943.
