The four-minute video is performed by members of a sanitary division from the German-speaking part of Switzerland.
The SanBoys, as they call themselves, spiced up their stay at the camp by lip-synching to Britney while performing a series of choreographed moves.
The hot pop action took place in several parts of the barracks, including the bunk dorms and the kitchen.
The soldiers also donned gas masks and boarded army trucks as they mouthed the words, at times inexpertly, of the American star’s 2011 hit single.
View the results of the soldiers’ shoot: