On Morotai, the 2/17th concentrated along with the rest of the 9th Division, which had been allocated to take part in operations to recapture Borneo as part of Operation Oboe. The battalion's part in this plan saw them land on Brunei on 10 June 1945 as part of Operation Oboe Six. Coming ashore near Brooketon, the battalion took part in capturing the capital before dispatching companies to secure individual objectives in the outlying areas as the Australians advanced along the coast towards the oilfields at Seria. In mid-July, 'D' Company carried out a patrol along the Baram River on board HMAS "Tiger Snake". On 13 August, following the atomic bombings of Hiroshima and Nagasaki, the order to cease offensive action was received from 20th Brigade headquarters and two days later the war came to an end with Japan's capitulation. Despite this, it was not until 10 September that the Japanese on Borneo formally surrendered, and the bulk of the battalion remained deployed until the end of the month. During this time they were involved in ensuring all Japanese forces in the area received the surrender instructions and complied with them, and with collecting and escorting surrendered Japanese soldiers and former Indian prisoners of war, with the battalion's last operation being completed in early October. The battalion's final campaign cost 24 men killed or wounded.