The Prophet Joseph Smith spoke of the role of the Holy Ghost in performing ordinations:
“We believe in the gift of the Holy Ghost being enjoyed now, as much as it was in the Apostles’ days; we believe that it [the gift of the Holy Ghost] is necessary to make and to organize the Priesthood, that no man can be called to fill any office in the ministry without it; we also believe in prophecy, in tongues, in visions, and in revelations, in gifts, and in healings; and that these things cannot be enjoyed without the gift of the Holy Ghost.”
(Teachings of the Prophet Joseph Smith, p. 243)