Welcome Scott Sheridan,
Thank you for reaching out to Microsoft Q&A forum.
Windows provides APIs and DLL functions that can place a Windows 11 PC into Sleep, Hibernate, or Shut Down mode.
For a batch file, one of the simplest methods is: rundll32.exe powrprof.dll,SetSuspendState 0,1,0
You can check this link for the information that powrprof.dll,SetSuspendState can be used to put Windows into a sleep state. How to sleep - Microsoft Q&A
However, on some Windows 11 systems, especially newer devices using Modern Standby (S0), this command may enter Hibernate instead of Sleep if hibernation is enabled. This behavior has been reported by Windows 11 users. Windows 11 24H2 goes into hibernation mode instead of sleep mode. How can I create a sleep mode sho…
To determine which sleep states your PC supports, open Command Prompt (Admin) and run: powercfg /a
This will show whether the device supports:
- Standby (S3) (traditional sleep)
- Standby (S0 Low Power Idle) (Modern Standby)
- Hibernate
If the answer is helpful, please click "Yes". If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.