The primary strategy for treating pinworm infections relies on anthelmintic medications. Because these drugs kill adult worms but are ineffective against eggs, a two-dose regimen is universally required. The second dose must be administered exactly two weeks after the first to eliminate any newly hatched worms before they can reach maturity and reproduce.