windows turn screen off code example Example: windows command turn off screen win + r and type "cmd" to open win terminal then: scrnsave.scr /s