
If you want to put your computer to sleep, you can do so remotely or from the command line. To put your Windows computer to sleep, you must first disable hibernate mode and then put the computer in sleep state. You can do this by using the following two commands: powercfg -hibernate off and rundll32.exe powrprof.dll,SetSuspendState 0,1,0. If you want to hibernate your computer, you can use the command: powercfg -hibernate on. Alternatively, you can use PsShutdown from Sysinternals.
| Characteristics | Values |
|---|---|
| Command to put computer to sleep | rundll32.exe powrprof.dll,SetSuspendState 0,1,0 |
| Command to disable hibernate | powercfg -hibernate off |
| Command to enable hibernate | powercfg -hibernate on |
| Command to put computer to hibernate | rundll32.exe powrprof.dll,SetSuspendState Hibernate |
| Command to put computer to sleep after a delay | nircmd cmdwait 15000 standby |
| Command to put multiple computers into standby mode simultaneously | nircmd.exe copy remote \\Remote-PC standby |
| Command to put the computer to sleep and copies the memory to disk in case of power loss | hybrid sleep |
Explore related products
What You'll Learn

Using the command prompt/run menu
To put your Windows 10 or 11 computer to sleep using the command prompt/run menu, you will need to follow a few steps.
Firstly, open the Start Menu and locate the Command Prompt application. Right-click on the application and select "Run as administrator". This step is important as it ensures you have the necessary privileges to execute the commands required to put your computer to sleep.
Next, you will need to disable hibernation on your computer. Hibernation is a power-saving mode that writes memory contents to the disk, allowing the computer to completely power off while retaining your work. While useful, it is different from sleep mode, which is preferred by many users as it allows for a quicker wake-up process. To disable hibernation, enter the following command:
Powercfg -hibernate off
Now that hibernation is disabled, you can put your computer into sleep mode. Type the following command and your computer will go to sleep:
Rundll32.exe powrprof.dll,SetSuspendState 0,1,0
If you would like to delay the sleep mode by a certain number of seconds, you can modify the command as follows:
Nircmd cmdwait [delay in milliseconds] standby
For example, to delay sleep mode by 15 seconds, the command would be:
Nircmd cmdwait 15000 standby
By following these steps, you can use the command prompt/run menu to put your Windows computer to sleep.
Sleep's Motif in Macbeth: A Symbolic Nightmare
You may want to see also
Explore related products

Disabling hibernate mode
Using Command Prompt
- Press the Windows button on your keyboard to open the Start menu.
- Search for "cmd" in the search bar.
- Right-click on "Command Prompt" and select "Run as Administrator".
- When prompted by User Account Control, select "Continue".
- Type the following command: `powercfg.exe /hibernate off` and press Enter.
- Type "exit" and press Enter to close the Command Prompt window.
Using Power Options
- Right-click on the "Start" menu icon and choose "Power Options".
- On the "Power & Sleep" page, select "Additional Power Settings".
- In the left sidebar, click on "Choose what the power buttons do".
- Select the "Change settings that are currently unavailable" option.
- Deselect the hibernation option from all the drop-down menus.
- In the "Shutdown Settings" section, uncheck the "Hibernate" option.
- Save your settings by selecting "Save Changes".
- Choose "Change Plan Settings" next to your active power plan.
- Select "Change Advanced Power Settings".
Disabling hibernation can help free up storage space and fix certain driver-related issues. Hibernation mode is a power-saving state where your PC saves all open apps and documents to a local file, allowing you to resume your work when you turn your computer back on. However, it uses multiple gigabytes of local storage, which can be reclaimed by disabling hibernation. Additionally, some drivers may not work well with hibernation, causing various issues on your PC.
Utilizing Sleep for Android: Maximizing Your Rest
You may want to see also
Explore related products

Using nircmd.exe
NirCmd is a command-line utility that allows you to perform useful tasks without a user interface. It is compatible with all versions of the Windows operating system.
To use NirCmd to put your computer to sleep, you can download the utility and run it with the appropriate command-line options. The specific command to put your computer to sleep may vary depending on your Windows version and system configuration. However, the general syntax for putting your computer to sleep using NirCmd is as follows:
`nircmd.exe standby`
This command will immediately put your computer into standby mode, which is the same as sleep mode. If you want to introduce a delay before your computer goes to sleep, you can use the following command:
`nircmd cmdwait 15000 standby`
This command will wait for 15 seconds (15,000 milliseconds) before putting the computer into standby mode. You can adjust the delay time by changing the value after "cmdwait" to the desired number of milliseconds.
Additionally, if you want to turn off your monitor without putting the computer to sleep, you can use the following command:
`nircmd.exe monitor off`
Please note that before running these commands, you may need to open an elevated Command Prompt by right-clicking on "cmd.exe" and choosing "Run as administrator." Also, ensure that hibernation is disabled on your system, as this can interfere with the sleep function.
Potions in KH Birth by Sleep: A Guide
You may want to see also

Using PowerShell
If you want to put your computer to sleep using PowerShell, you can use the PsShutdown tool from Microsoft's Sysinternals. This tool is recommended and offers various options for putting your computer to sleep, including hibernation mode, shutdown, and restart.
To use PsShutdown, you will need to specify the remote computer(s) you want to put to sleep. You can do this by providing the computer names, either by separating their names with commas or by writing them into a text file, with each computer's name on a separate line.
PsShutdown -r -t 20 -v \\Remote-PC
In this command, `-r` specifies the restart action, `-t 20` sets a 20-second delay before the action is taken, and `-v` displays a message during the wait.
You can also use the NirSoft tool from Microsoft to put your computer into standby mode. Here is an example command using NirSoft:
Nircmd.exe remote \\Remote-PC standby
In this command, `remote` is used to specify a remote computer, and `standby` is the action to be taken.
Please note that PowerShell itself does not offer any built-in commands to put a computer to sleep. The above methods utilize external tools from Microsoft to achieve this functionality.
Cellphones: Stealing Sleep and Ruining Your Night
You may want to see also

Using PsShutdown
PsShutdown is a command-line utility that can be used to shut down or restart a computer. It can also be used to put a computer to sleep. Here is how you can use PsShutdown to put your computer to sleep:
First, open an elevated Command Prompt by typing "cmd.exe" in the Start Menu, right-clicking, and choosing "Run as administrator". This will allow you to use the PsShutdown command.
Next, you will need to disable Hibernate on your computer. Hibernate is a power-saving mode that is similar to sleep, but it saves the computer's state to disk, allowing it to be powered off completely. To disable Hibernate, use the following command:
Powercfg -hibernate off
Now that Hibernate is disabled, you can use the following command to put your computer to sleep:
Rundll32.exe powrprof.dll,SetSuspendState 0,1,0
This command will put your computer into a sleep state, which will reduce its power consumption and allow it to be quickly awakened later.
You can also add a delay before the computer goes to sleep by specifying the number of milliseconds to wait before sleeping. For example, to wait 15 seconds before putting the computer to sleep, you can use the following command:
Nircmd cmdwait 15000 standby
By using PsShutdown and the appropriate commands, you can easily put your computer to sleep using the Command Prompt.
Sleep Deprivation: Narcissists' Manipulation and Control Tactic
You may want to see also
Frequently asked questions
Use the following command:
```
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
```
First, disable Hibernate on your computer. Then, use the following command:
```
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
```
Use the following command:
```
nircmd.exe monitor off
```
Use the following command:
```
PsShutdown
```



















