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