I know some of the Hogwarts security protocols, but I also think there's a lot that can only be activated by a person the castle recognises as Headmaster. If we can find a way to release Professor McGonagall, perhaps she'd be able to take that role.
We'd need to have a group of us permanently allocated to the defence of Hogwarts. Most of us, really. Others too, if they'd help.