The short answer
Most female soldiers did support jobs: clerical, signals, transport, medical, anti-aircraft and codebreaking work. A small number served in combat roles, mainly in the Soviet forces and in resistance networks in occupied Europe.
Britain
The Auxiliary Territorial Service (ATS) served with the Army. Members worked as drivers, mechanics, cooks and clerks. Some worked at anti-aircraft sites, operating searchlights and predictors that supported the guns. For the ATS alone, see what did the ATS do in WWII.
The Women’s Auxiliary Air Force (WAAF) served with the Royal Air Force. Women worked as radar plotters and radio operators, and in barrage balloon units.
The Women’s Royal Naval Service (WRNS), known as the Wrens, handled signals, plotting and administration. Many women worked on codebreaking, and a large share of the staff at Bletchley Park were women.
The United States
The Women’s Army Corps (WAC) provided clerks, switchboard operators, mechanics and medical technicians. The Navy’s WAVES filled similar support jobs. Army nurses served in theaters across the world, and a group of them captured in the Philippines spent much of the war as prisoners.
The Women Airforce Service Pilots (WASP) were civilian pilots who flew aircraft from factories to bases and carried out other non-combat flying. About 1,000 women trained and served in the program.
The Soviet Union
Soviet women served in more combat roles than women in other major armies. The sniper Lyudmila Pavlichenko is credited with more than 300 kills. The 588th Night Bomber Regiment, known as the Night Witches, flew night raids in light biplanes. Women also served in anti-aircraft units and as medics at the front, where they carried the wounded from the battlefield.
Germany and occupied Europe
German women served as Flakhelferinnen, auxiliaries who helped with anti-aircraft batteries, and as nurses and clerks. In occupied Europe, resistance networks used women as couriers and radio operators. Noor Inayat Khan, a wireless operator for the British Special Operations Executive in occupied France, was captured in 1943 and executed at Dachau in 1944.
Nurses in every army
Nurses served close to the front lines in every major army. Some were killed, wounded or captured, and nursing was one of the most common roles for women in uniform.
Why combat roles were rare
Western governments generally kept women out of combat, and the most dangerous jobs stayed largely male. For the jobs with the highest death rates, see what was the deadliest job in WWII.