Recent advancements in functional neuroimaging have demonstrated that some unresponsive patients in the intensive care unit retain a level of consciousness that is inconsistent with their behavioral diagnosis of awareness. Functional near-infrared spectroscopy (fNIRS) is a portable optical neuroimaging method that can be used to measure neural activity with good temporal and spatial resolution. However, the reliability of fNIRS for detecting the neural correlates of consciousness remains to be established. In a series of studies, we evaluated whether fNIRS can record sensory, perceptual, and command-driven neural processing in healthy participants and in behaviorally nonresponsive patients. At the individual healthy subject level, we demonstrate that fNIRS can detect commonly studied resting state networks, sensorimotor processing, speech-specific auditory processing, and volitional command-driven brain activity to a motor imagery task. We then tested fNIRS with three acutely brain injured patients and found that one could willfully modulate their brain activity when instructed to imagine playing a game of tennis-providing evidence of preserved consciousness despite no observable behavioral signs of awareness. The successful application of fNIRS for detecting preserved awareness among behaviorally nonresponsive patients highlights its potential as a valuable tool for uncovering hidden cognitive states in critical care settings.