New York Laws
Article 12-A - Real Estate Brokers and Real Estate Salespersons
442-F - Saving Clause.

ยง 442-f. Saving clause. The provisions of this article shall not apply
to receivers, referees, administrators, executors, guardians or other
persons appointed by or acting under the judgment or order of any court;
or public officers while performing their official duties, or attorneys
at law.