(2) Except as provided in this subdivision, a provider of electronic communications service or remote computing service may not disclose a record or other information pertaining to a subscriber or customer of the service to any person other than an investigative or law-enforcement officer.
A provider of electronic communications service or remote computing service shall disclose a record or other information pertaining to a subscriber to or a customer of the service to an investigative or law-enforcement officer only if the officer:
a. Obtains a subpoena issued by a court of competent jurisdiction, a grand jury, or as authorized by Chapter 25 of Title 29;
b. Obtains a search warrant from a court of competent jurisdiction;
c. Obtains a court order requiring the disclosure under subsection (d) of this section; or
d. Has the consent of the subscriber or customer to the disclosure.