A woman who used a brick to smash a window at Simon Cowell's London home and was found inside his walk-in wardrobe has been handed a 12-month community order.
Leanne Zaloumis, 30, was told that she will have to undergo mental health treatment and be monitored by officials as a result of what happened at Cowell's mansion in March.
Sentencing her at London's Isleworth Crown Court, judge Robert Winstanley also issued a restraining order against her approaching Cowell.
X Factor creator Cowell, 52, was not present at the hearing.
Last month, Zaloumis, from Catford, south east London, admitted possessing a brick intending to damage or destroy property, and breaking a window at Cowell's home in Holland Park.
Cowell had been watching television in his bedroom on March 24 when he heard a loud bang coming from his bathroom and called his staff.
The police were alerted and arrived at the house to find Zaloumis hiding in the wardrobe.
Zaloumis was also alleged to have shouted at Cowell and hurled items at his bathroom window while standing on a roof outside.
Cowell's joint venture with Sony, Syco Entertainment, owns the X Factor and Got Talent formats.
He is scheduled to return as a judge for the second series of The X Factor USA in September.