 After a brief term as Director of Military Training in early 1942, he returned to staff duties with the rank of brigadier, serving with III Corps until June 1943, Second Army until August 1943, then at the Advanced Land HQ at St Lucia, Queensland, until January 1944.Anderson was on the staff of the Northern Territory Force until August 1944, with two brief periods as acting General Officer Commanding in February/March and August.From September 1944 until the end of the war in August 1945 he was attached as brigadier in charge of administration to the Eighth United States Army.