SCRNSAVER — Display or change the screen saver settings.

Syntax:
SCRNSAVER /A /D /E /N /S /T:timeout /U filename

/Aactivate (run) the screen saver
/Ddisable the screen saver
/Eenable the screen saver
/Nno screen saver
/Ssecure (show login screen when the screen saver is dismissed)
/T:timeoutidle time before the screen saver is started
/Uunsecure (no login screen)
filenamethe screen saver filename; must end in .SCR

If the filename does not have a path, the Windows system directory will be assumed. If it does not have an extension, .SCR will be appended automatically.

The timeout may be specified either in seconds, or in mm:ss format (or even hh:mm:ss for extremely long delays.) /T:300 is the same as /T:5:00. The maximum timeout value is 24 hours (86400 seconds).

If /A is specified, the selected screen saver will be run after any settings changes.

rem  Run "Mystify" after 5 minutes of inactivity:
scrnsaver /e /t:5:00 mystify.scr


See also: the _SSVRNAME and _SSVRTIME variables, which return the current screen saver filename and timeout respectively.