Hermione did not use a charm to stop the pixies in Harry Potter and the Chamber of Secrets. She cast the Imperius Curse (Imperio) on individual pixies to control them—making them fetch items and perform tasks. While Imperio is intended for humans, it worked on the magical pixies, exploiting a loophole in magical law.