If he has not slept there for thirty days, then he cannot claim residency and continue to squat there until he is evicted.
The maintenance man is not the route to go in order to get an unwanted guest to leave your apartment/condo.
Write to your friend, so you have documentation, that when you invited him to stay for one night on date X, you did not anticipate, expect or give permission for him to stay X number of nights, therefore you are politely asking them to leave as they are not a welcomed room mate, nor are they legally able to stay as they are not on your lease. Give them 24 or 48 hours to vacate. Keep a copy of the document.
If they are not out within 24 to 48 hours, pack up their things and put them by the door after you change your locks. When they come a knocking, push their crap out the door and close it. Over and OUT.