A 30-year-old woman has admitted smashing a window at music supremo Simon Cowell's London home with a broken brick.
Leanne Zaloumis was granted bail at Isleworth Crown Court in west London, but told she must not attempt to contact Cowell, or go within 300 yards of his Holland Park property.
The defendant, from south east London, admitted being in possession of a brick with the intent to damage or destroy property, and breaking a window on March 24, but pleaded not guilty to two other counts of affray and burglary.
Cowell was watching TV in his bedroom when he heard a "loud bang" coming from his bathroom.
Zaloumis was taken to Notting Hill police station after being found inside a walk-in wardrobe at the mansion, a previous hearing was told. She was also accused of shouting at Cowell and hurling items at his bathroom window while standing on a roof outside.
The 52-year-old X Factor judge called his staff and was taken back to his bedroom during the incident at around 10.30pm on the Saturday night.
Judge John Denniss did not sentence Zaloumis, who has already spent 102 days behind bars, because of administrative delays, but granted conditional bail because she has already served around three months in custody.
As well as banning her from contacting Cowell, which he described as like a "restraining order", he told her she must stay at her home address, remain inside between 7pm and 7am and wear an electronic tag.
Cowell was not present at the hearing.
His spokesman, Max Clifford, said: "He is glad that the judge was understanding and sympathetic, and hopes that she gets some help and support."