They put her under the Body-Bind Curse. The Auror then cast a spell called "Legilimens" and carefully broke through the Memory Charm. When the unfamiliar images of her past flooded her mind all at once, Hermione lost consciousness.