On 13 June, "Weber" departed Ulithi to escort to Okinawa where the battleship was needed to render gunfire support to American forces subduing the defenders on the southern portion of the island. The task unit arrived off the island four days later. Following a short time at Hagushi anchorage, "Weber" put into the roadstead at Kerama Retto for fuel. On 25 June, she was assigned to a surface force built around battleships "California" and , and cruisers , , , , and . Serving as antisubmarine and mine escort for that unit, she patrolled the waters around Okinawa until 1 July, protecting communications and supply lines. She returned to Hagushi for a week on 1 July and departed the Ryūkyūs on the 8th in the screen of a convoy bound for the Marianas. Delivering her charges safely at Saipan on 12 July, she continued her voyage the following day and arrived at San Pedro Bay, Leyte, on the 17th. She spent the remaining weeks of World War II at Leyte engaged in training exercises in preparation for the expected invasion of the Japanese home islands. Fortunately, the Japanese agreed to surrender terms on 15 August, making that operation unnecessary.