 From 1938-1940, Hayashi served with the garrison forces in Taiwan.In 1940, during the preparations for the invasion of Southeast Asia, Hayashi was put in command of the Taiwan Army Research Section, tasked with investigating issues with tropical warfare.He was promoted to major general in 1941.