Once you have begun treatment for pinworms it can take up to a week for symptoms to abate, and much longer to complete treatment. Pinworms in the scalp can often be treated for 1 to 3 months, with most cleansing precautions to prevent reinfection lasting upwards of 6 weeks.