From my understanding it would have been alums and others interested in helping Hogwarts. With obvious exceptions to those too young and the like.
And even if they didn't fight in the battle, there was plenty to be done after the battle when the castle was being rebuilt and everything ^^