Working memory is a fundamental cognitive process for decision-making and is a hallmark impairment in a variety of neuropsychiatric and neurodegenerative diseases. Spatial working memory paradigms are a valuable tool to assess these processes in rodents and dissect the neurobiology underlying working memory. The trial unique non-match to location (TUNL) task is an automated touchscreen paradigm used to study spatial working memory and pattern separation processes in rodents. Here, animals must remember the spatial location of a stimulus presented on the screen over a delay period; and use this representation to respond to the novel location when the two are presented together. Because stimuli can be presented in a variety of spatial configurations, TUNL offers a trial-unique paradigm, which can aid in combating the development of unwanted mediating strategies. Here, we have optimized the TUNL protocol for mice to reduce training time and further reduce the potential development of mediating strategies. As a result, mice are able to accurately perform an enhanced trial-unique paradigm, where the locations of the sample and choice stimuli can be presented in any configuration on the screen during a single session. We also aimed to pharmacologically characterize this updated protocol, by assessing the roles of the medial prefrontal cortex (mPFC) and N-methyl-D-aspartate (NMDA) receptor (NMDAr) functioning during TUNL. Temporary inactivation of the medial prefrontal cortex (mPFC) was accomplished by directly infusing a mixture of GABA agonists muscimol and baclofen into the mPFC. We found that mPFC inactivation significantly impaired TUNL performance in a delay-dependent manner. In addition, mPFC inactivation significantly increased the susceptibility of mice to proactive interference. Mice were then challenged with acute systemic injections of the NMDAr antagonist ketamine, which resulted in a dose-dependent, delay-dependent working memory impairment. Together, we describe an optimized automated touchscreen task of working memory, which is dependent on the intact functioning of the mPFC and sensitive to acute NMDAr hypofunction. With the vast genetic toolbox available for modeling disease and probing neural circuit functioning in mice, the TUNL task offers a valuable paradigm to pair with these technologies to further investigate the processes underlying spatial working memory.