But I won't advise you disable these devices from being able to wake up your computer. I've been in this situation before, and I've seen people around me in the same situation. Peripheral Devices such as your mouse, keyboard, scanner, and network adapters can interfere with your PC power settings and prevent it from going to sleep. How to Fix Windows 10 PC Not Going to Sleep By Removing Peripheral Devices Select Additional power settings on the right.Įxpand “Sleep”, and then “Sleep after” in the tree menu. Then under the Sleep section, set the times for when your computer goes to sleep on battery and while plugged in (charging). Step 3: Make sure you're in the Power and Sleep tab. Step 2: Select System from the menu tiles. Step 1: Press WIN I on your keyboard to launch Settings. To make sure sleep mode is enabled, follow these steps: How to Fix Windows 10 PC Not Going to Sleep By Enabling Sleep Mode In this article, I will show you 4 ways you make your computer go to sleep again so it consumes less power. If you're currently unable to put your computer to sleep, you've come to the right place. This could be due to peripheral devices and errors in power settings. It turns off your computer's monitor and hard drive, slowing down power consumption in the process.īut your PC might refuse to go to sleep sometimes. Then you can review your GP: Get-GPO -Name "ScreenSaverTimeOut" | Get-GPOReport -ReportType HTML -Path $Home\report.If you stop working temporarily and you're not ready to shut down your PC, Windows 10 sleep mode is a great option. For New-GPLink parameters: msdn reference New-GPLink -Name "ScreenSaverTimeOut" -Target "ou=MyOU,dc=myenterprise,dc=com"įor. Set-GPRegistryValue -Name "ScreenSaverTimeOut" -Key "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" -ValueName ScreenSaveTimeOut -Type DWord -Value 900 New-GPO -Name "ScreenSaverTimeOut" -Comment "Sets the time to 900 seconds" Using powershell and group policy, you can manage for which Organizational Unit / Domain / Site you're affecting the change, and it's having prevedence over user settings.Ĭhanging group policy in the case of the screen saver time out: Get-Command -Module GroupPolicy With user / domain / site awareness: group policy NB: Thoses parameters are superseeded by group policy parameters (eg., to force a screen saver for users in an enterprise). You can put these in a ScrnInstaller.ps1 script that you execute with the command: $ powershell -WindowStyle hidden -f "ScrnInstaller.ps1" Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name scrnsave.exe -Value "c:\windows\system32\mystify.scr" Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name ScreenSaveTimeOut -Value 60 The modern way, with powershell Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name ScreenSaveActive -Value 1 Public static void setScreenSaver(boolean isActive, int timeOutMin, String pathToScr) throws IOException) Ģ) Get path from registry and rewrite scr file, but if is set to null, you can't do it. * set screen saver active, timeout and scr, only works in Windows JAVA setScreenSaver(true, 1, "C:\\Windows\\System32\\Mystify.scr") Reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d 60 /f Reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveActive /t REG_SZ /d 1 /f 1) Add in registry, make sure is active and setTimeOut (only minutes) CMD reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d C:\Windows\System32\Mystify.scr /f
0 Comments
Leave a Reply. |