A woman has admitted to smashing a window at 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 'The X Factor' boss, or go within 300 yards of his Holland Park property.

The defendant admitted being in possession of a brick with the intent to damage or destroy property, and breaking a window on March 24.

However she pleaded not guilty to two other counts of affray and burglary.

Simon was watching television in his bedroom when he heard a ''loud bang'' coming from his bathroom.

The culprit was taken to Notting Hill police station after being found inside a walk-in wardrobe at the mansion, a previous hearing was told.

The 52-year-old talent show judge called his staff and was taken back to his bedroom during the incident at around 10.30pm on the Saturday night.

As well as banning her from contacting Simon, which Judge John Denniss 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.

A sentencing date of August 2 was fixed but the judge explained that as the defendant has already spent 102 days behind bars, that would be the equivalent to an appropriate sentence.

Simon 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.''