STAMFORD -- The former White House lawyer charged with nearly bludgeoning his wife to death in January, is expected to be released to a private mental health facility in Hartford on Monday under strict conditions set by a state Superior Court judge in Stamford Thursday morning.

John Michael Farren, 57, of 388 Wahackme Road in New Canaan, appeared in court Thursday for the first time during his five-month incarceration without a beard for a hearing on the terms of his release on $2 million bond to the Institute of Living in Hartford to seek mental health treatement.

Farren must adhere to 10 conditions of his release, including being locked up and monitored at all times. Judge Richard Comerford signed off on the agreement with Farren's attorney Eugene Riccio.

Farren is charged with attempted murder and first-degree strangulation for the alleged Jan. 6 attack on his wife, Mary Farren. His wife, 43, said Farren beat her with a large flashlight. She sustained a broken jaw, facial fractures, lacerations to the back of her head and after being beaten into unconsciousness and was taken to Norwalk Hospital, a police report of the incident said.

Farren has served as general counsel and vice president of external affairs for the Xerox Corp. and served as under secretary of commerce for international trade under President George H.W. Bush and in the White House counsel's office under President George W. Bush.

Farren worked as a deputy counsel for George W. Bush from 2007 until he left office; in this role, he took on a number of issues, including dismissal of several U.S. attorneys and the disappearance of White House e-mail communications.

Prior to joining the Bush legal team, Farren served as a vice president in charge of government relations for Xerox.

Farren worked in the U.S. Department of Commerce under President Ronald Reagan and became under secretary for international trade for President George H.W. Bush in 1989. In 1992, Farren left the commerce department to become a deputy manager for the unsuccessful Bush-Quayle reelection campaign.

Farren served as deputy director for George H.W. Bush's transition team and prior to joining the commerce department in 1983, he served for two years as deputy director of White House liaison at the Republican National Committee.