N.Y. Military Law § 131.2
(a) The following officers of the organized militia shall have power to administer oaths for the purposes of military administration, including military justice, and affidavits may be taken for such purposes before such officers:
(b) The following officers of the organized militia shall have power to administer oaths necessary in the performance of their duties, and affidavits may be taken for such purposes before such officers: