Command Line + Batch File Shutdown, Reboot, Lock Screen, Start Screen Saver Updated August 01 2024
Restart:

Copy to Clipboardshutdown -r -f -t 10

-t 10 indicates a 10 second wait before shutdown
-f indicates force, which will force a restart, even if a program tries to prevent it (such as a program asking to save changes to a file before closing)

Shutdown:
Copy to Clipboardshutdown -s -f -t 10

-t 10 indicates a 10 second wait before shutdown
-f indicates force, which will force a restart, even if a program tries to prevent it (such as a program asking to save changes to a file before closing)

Lock Screen:
Copy to Clipboardrundll32.exe user32.dll,LockWorkStation


Start Screensaver (note that this will NOT require a password when the mouse moves to exit it!):
start Mystify.scr /s
Some example screensavers are below, you can look for more .scr files in your C:\Windows\System32 folder.
Bubbles.scr
Mystify.scr
PhotoScreensaver.scr
Ribbons.scr
scrnsave.scr
ssText3d.scr




©2024 - Some portions of this website are Copyrighted.
Your IP: 3.133.145.17     Referring URL:
Browser: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Terms and Conditions, Privacy Policy, and Security Policy