How can I kick all users off the site while fixing a few things?

I'm about to fix a few things and perhaps perform a restore. The first step seems to kick off a few existing users and perform the maintenance. The question is how?