(725 ILCS 5/115-17b)
    Sec. 115-17b. Administrative subpoenas.
    (a) Definitions. As used in this Section:
        "Electronic communication services" and "remote
    
computing services" have the same meaning as provided in the Electronic Communications Privacy Act in Chapter 121 (commencing with Section 2701) of Part I of Title 18 of the United States Code Annotated.
        "Offense involving the sexual exploitation of
    
children" means an offense under Section 11-1.20, 11-1.30, 11-1.40, 11-1.50, 11-1.60, 11-6, 11-6.5, 11-6.6, 11-9.1, 11-14.4, 11-15.1, 11-17.1, 11-18.1, 11-19.1, 11-19.2, 11-20.1, 11-20.1B, 11-20.3, 11-21, 11-23, 11-25, 11-26, 12-13, 12-14, 12-14.1, 12-15, or 12-16 of the Criminal Code of 1961 or the Criminal Code of 2012 or any attempt to commit any of these offenses when the victim is under 18 years of age.
    (b) Subpoenas duces tecum. In any criminal investigation of an offense involving the sexual exploitation of children, the Attorney General, or his or her designee, or a State's Attorney, or his or her designee, may issue in writing and cause to be served subpoenas duces tecum to providers of electronic communication services or remote computing services requiring the production of records relevant to the investigation. Any such request for records shall not extend beyond requiring the provider to disclose the information specified in 18 U.S.C. 2703(c)(2). Any subpoena duces tecum issued under this Section shall be made returnable to the Chief Judge of the Circuit Court for the Circuit in which the State's Attorney resides, or his or her designee, or for subpoenas issued by the Attorney General, the subpoena shall be made returnable to the Chief Judge of the Circuit Court for the Circuit to which the investigation pertains, or his or her designee, to determine whether the documents are privileged and whether the subpoena is unreasonable or oppressive.
    (c) Contents of subpoena. A subpoena under this Section shall describe the records or other things required to be produced and prescribe a return date within a reasonable period of time within which the objects or records can be assembled and made available.
    (c-5) Contemporaneous notice to Chief Judge. Whenever a subpoena is issued under this Section, the Attorney General or his or her designee or the State's Attorney or his or her designee shall be required to provide a copy of the subpoena to the Chief Judge of the county in which the subpoena is returnable.
    (d) Modifying or quashing subpoena. At any time before the return date specified in the subpoena, the person or entity to whom the subpoena is directed may petition for an order modifying or quashing the subpoena on the grounds that the subpoena is oppressive or unreasonable or that the subpoena seeks privileged documents or records.
    (e) Ex parte order. An Illinois circuit court for the circuit in which the subpoena is or will be issued, upon application of the Attorney General, or his or her designee, or State's Attorney, or his or her designee, may issue an ex parte order that no person or entity disclose to any other person or entity (other than persons necessary to comply with the subpoena) the existence of such subpoena for a period of up to 90 days.
        (1) Such order may be issued upon a showing that the
    
things being sought may be relevant to the investigation and there is reason to believe that such disclosure may result in:
            (A) endangerment to the life or physical safety
        
of any person;
            (B) flight to avoid prosecution;
            (C) destruction of or tampering with evidence;
            (D) intimidation of potential witnesses; or
            (E) otherwise seriously jeopardizing an
        
investigation or unduly delaying a trial.
        (2) An order under this Section may be renewed for
    
additional periods of up to 90 days upon a showing that the circumstances described in paragraph (1) of this subsection (e) continue to exist.
    (f) Enforcement. A witness who is duly subpoenaed who neglects or refuses to comply with the subpoena shall be proceeded against and punished for contempt of the court. A subpoena duces tecum issued under this Section may be enforced pursuant to the Uniform Act to Secure the Attendance of Witnesses from Within or Without a State in Criminal Proceedings.
    (g) Immunity from civil liability. Notwithstanding any federal, State, or local law, any person, including officers, agents, and employees, receiving a subpoena under this Section, who complies in good faith with the subpoena and thus produces the materials sought, shall not be liable in any court of Illinois to any customer or other person for such production or for nondisclosure of that production to the customer.
(Source: P.A. 99-642, eff. 7-28-16.)