EX-23.(F) 6 k88013exv23wxfy.txt CONSENT OF ERNST AND YOUNG EXHIBIT (23)(f) Consent of Independent Registered Public Accounting Firm We consent to the reference to our firm under the caption "Experts" in Amendment No. 3 to the Registration Statement on Form S-3 (No. 333-51932) and the related Prospectus of CMS Energy Corporation dated September 7, 2004 and to the incorporation by reference therein of our report dated June 27, 2004 with respect to the financial statements of Emirates CMS Power Company PJSC for the year ended December 31, 2003 included in CMS Energy Corporation's Annual Report (Form 10-K/A) for the year ended December 31, 2003 filed with the Securities and Exchange Commission. /s/ Ernst & Young Abu Dhabi, United Arab Emirates September 2, 2004