Usually when an order for exclusive possession is made, the court order will also include a term that the other spouse can periodically enter or enter on a specific date for a pre-specified purpose.
Normally a spouse is allowed to reenter the home after an order for exclusive possession for reasons such as the need to retrieve certain belongings or sometimes to exercise custody or access to children. These types of orders almost always set out specific dates for access or that a certain amount of notice should be given prior to reentry.
It is important to know that just because a spouse has been given exclusive possession of the home it does not mean that they now own everything in the home. It is a temporary arrangement and the spouse with exclusive possession does not have the right to dispose of or sell the other spouses property.