Working memory is an important cognitive process dependent on a network of prefrontal and posterior cortical regions. In this study we tested the effects of the mixed D1-D2 dopamine receptor agonist pergolide on component processes of human working memory using functional magnetic resonance imaging (fMRI). An event-related trial design allowed separation of the effects on encoding, maintenance, and retrieval processes. Subjects were tested with spatial and object memoranda to investigate modality-specific effects of dopaminergic stimulation. We also measured baseline working memory capacity as previous studies have shown that effects of dopamine agonists vary with working memory span. Pergolide improved reaction time for high-span subjects and impaired reaction time for low-span subjects. This span-dependent change in behavior was accompanied by span-dependent changes in delay-related activity in the premotor cortex. We also found evidence for modality-specific effects of pergolide only during the response period. Pergolide increased activity for spatial memoranda and decreased activity for object memoranda in task-related regions including the prefrontal and parietal cortices.