She provided gunfire support to German ground forces during Operation Barbarossa, the invasion of the Soviet Union in 1941, and returned to Norway in 1942. Ultimately, she was sunk in Wilhelmshaven in March 1945 by American bombers. Her guns were still above water, which allowed her to support the defending German army against British ground forces until the final days of the war.