You can achieve this by using an antifungal shampoo like Head & Shoulders or Selsun blue, among many others. For many cases of dandruff, this antifungal shampoo will be enough of a treatment.