(b) A tenant who has obtained a protective order from a court of competent jurisdiction granting him or her possession of a dwelling to the exclusion of one or more other tenants or household members may request that a lock be replaced or configured for a new key at the tenant's expense. The lessor or owner shall, if provided a copy of the protective order, comply with the request and shall not give copies of the new keys to the tenant or household member restrained or excluded by the protective order.
(c) A lessor or owner who replaces a lock or configures a lock for a new key in accordance with subparagraph (b) shall not be liable for any damages that result directly from the lock replacement or reconfiguration.
(d) If, after a hearing in the possessory action, the court finds that there are grounds under this section to evict the tenant or household member accused of the domestic violence, sexual assault, or stalking, it may issue a judgment in favor of the lessor or owner of the property against the person accused, and allow the tenancy of the remainder of the residents to continue undisturbed. The lessor or owner of the rental unit at issue in the possessory action shall have the right to bar the person accused of the domestic violence, sexual assault, or stalking from the unit and from the lessor's or owner's property once judgment in the possessory action becomes final against such person. Thereafter, and notwithstanding RSA 635:2, the person's entry upon the lessor's or owner's property after being notified in writing that he or she has been barred from the property shall constitute a trespass.