The commissioner of finance and administration shall settle with the banks, insurance companies, tax collectors, and clerks, and all other corporations, companies, officers and persons, all accounts of moneys due from them, or any of them, which have been appropriated to the use of common schools, and which are by law subject to annual distribution, and shall charge the same, and keep a full account thereof, in books to be kept for the purpose, and shall issue such commissioner's warrant for the payment thereof into the treasury in the same manner as for the payment of the revenue of the state.