![]() ![]() Open File Explorer, navigate to "C:\Windows", scroll down, right-click the > system32 folder and click Paste.Right-click it > again and click Properties. On your desktop, right-click PsShutdown.exe and click Copy. ![]() ![]() This can be done using Powershell - create a file eg sleep.ps1, with the below contents. Instead you should call SetSuspendState directly. Open it and copy PsShutdown.exe to your > desktop. Caution: rundll32.exe should not be used to launch powerprof.dll. Via command line, you'll need to install a more capable tool before you can Is missing the standby feature! So, it you want to put your computer to sleep Unfortunately, after all the features it has, the Microsoft shutdown command Instead of calling Rundll32.exe in your batch script you download an alternative tool and call that instead. The commonly used batch script command Rundll32.exe Powrprof.dll,SetSuspendState Sleep sleeps the computer in such a way that scheduled tasks are not able to wake the computer from sleep, this is due to what appears to be a bug in Rundll32.exe.Ĭredit goes to Techie007L's post on the microsoft forums for discovering this and proposing a solution. Rundll32.exe Powrprof.dll,SetSuspendState Sleep. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |