On entering, they found the safety tags on a couple of fire extinguishers in the hallway of the Birchtree Hotel in the town had been removed.
Then as they explored further, they found a number of rooms had been entered.
And finally, a court was told, they discovered a woman in one room, in a bed.
In court at Dumfries on Wednesday, Simondeed Dulay, 30, of Urr Road, Dalbeattie, admitted entering the hotel on May 3, maliciously removing the tags from the extinguishers, entering a number or rooms, removing items from rooms and disposing of them elsewhere and entering a number of beds which had to be cleaned.
A solicitor told the court that Dulay, who gets visits from support workers, had had a drink.
Sheriff Brian Mohan deferred sentence for six months and warned her to be of good behaviour.