Maryland Business Occupations and Professions Section 17-102
§ 17-102.
  This title does not apply to:
    (1)   a person while acting under a judgment or order of a court;
    (2)   a public officer while performing the duties of office;
    (3)   a person while engaging in a single transaction that involves the sale or lease of any real estate under a power of attorney executed by the owner of the real estate;
    (4)   a licensed auctioneer while selling any real estate at public auction;
    (5)   an owner or lessor of any real estate while managing, leasing, or selling the real estate, unless the primary business of the owner or lessor is providing real estate brokerage services; or
    (6)   a person while acting in the capacity of:
      (i)   a receiver;
      (ii)   a trustee;
      (iii)   a personal representative; or
      (iv)   a guardian.