after the death of bishop matthäus lang von wellenburg of salzburg, ernest was elected as administrator of salzburg by the chapter on 21 april 1540. the pope confirmed his election on 21 may of that year, subject to the condition that within ten years, ernest should be ordained as a priest or otherwise he would have to abandon the archdiocese. he took possession of the diocese on 12 october 1540.