随机打开的计算机可能会非常烦人。我多次遇到这种情况,我必须确保关闭开关,所以它不可能自动打开。您的 Windows 11 或 Windows 10 电脑自动开机并从睡眠、待机甚至关闭时唤醒的原因可能有多种。让我们看看所有可能的因素,但在此之前,有一种方法可以找出是什么唤醒了您的计算机。
找出是什么唤醒了您的计算机
使用管理员权限(command prompt with admin privileges)打开命令提示符,然后键入以下命令,然后按 Enter(Enter):
powercfg –lastwake
这将向您显示唤醒您的 PC 的最后一个设备。 第二个命令是:
powercfg –devicequery wake_armed
这将显示可以唤醒您的 PC 的所有设备的列表。运行这些命令的想法是了解它是否在硬件级别上的原因。
您可以从列表中看到有三个设备可以唤醒我的 PC。您拥有键盘、鼠标和千兆网络(Gigabit Network)连接,即以太网(Ethernet)。
Windows 11/10 电脑自行开机
如果您的Windows计算机在夜间或任何其他时间随机从(Windows)睡眠(Sleep)状态自动打开,则可能是硬件或软件问题,解决方案将取决于此。以下是一些可能对您有所帮助的建议。
- 禁用快速启动
- 防止任务计划程序(Prevent Task Scheduler)唤醒 PC
- 禁用自动重启
- 键盘或鼠标唤醒您的 PC
- 网络唤醒
- 阻止计划的 Windows 更新(Prevent Scheduled Windows Update)和自动(Automatic)维护
其中一些需要管理员权限。
1]禁用快速启动
Windows 10 带有快速启动(Fast Startup)模式,它不会以通常的方式关闭您的 PC。相反,它将它保持在混合状态,因此当您再次打开 PC 时,它会快得多。根据表单上的一些专家的说法,这可能是一个问题,解决方案是禁用 Fast Startup(disable Fast Startup)。
2]防止任务计划程序(Prevent Task Scheduler)唤醒PC
有时它更多的是软件问题,而不是硬件问题。您可能正在使用计划任务在一天中的特定时间或一天中的多个时间完成一些工作。所以我们需要摆脱它们,而不是删除这些任务,我们可以更改Windows的(Windows)电源(Power)设置,以确保它在待机(Standby)或混合(Hybrid)模式下忽略这些任务。
- 打开电源选项 > 单击更改计划设置。(Change Plan Settings.)
- 确保(Make)选择正确的电源计划,然后选择更改高级电源设置选项。(Change advanced Power settings.)
- 查找Sleep树并展开它以找到显示 Allow Wake Timers的选项。(Allow Wake Timers.)禁用它。
这将确保这些程序都不能在您的电脑处于睡眠模式或关机模式时唤醒您的电脑。这仅适用于笔记本电脑(Laptops)。
阅读(Read):什么是 Windows PC 的唤醒源(What is a Wake source for Windows PC)?
3]禁用自动重启
很多时候计算机崩溃,系统重新启动。这是设计使然。如果您让您的 PC 处于待机状态,并且发生这种情况,计算机将重新启动,如果问题重复出现,这将继续唤醒您的 PC。
- 在搜索栏上键入系统。(System)
- 当它出现时,单击以启动。
- 在左侧,选择 高级(Advanced)系统设置 > 高级(Advanced)选项卡
- 单击 启动和恢复(Startup and Recovery)下 的设置(Settings )。
- 取消选中 自动重启(Automatically Restart ),然后单击确定。
4]键盘(Keyboard)或鼠标唤醒(Mouse Waking)您的PC
键盘和鼠标是唤醒 PC 的主要罪魁祸首。也许(Maybe)有人刚刚经过你的电脑,轻轻敲了一下他们,你的电脑就打开了。在我的电脑上,我设置了键盘来启动我的电脑,当我的孩子只是假装在键盘上工作时,电脑就活了。
这些设备带有电源管理选项,您可以禁用它以确保它们不会唤醒您的 PC,除非您真的想唤醒它们。
打开设备管理器(Device Manager)(Win+X,然后按 M)。这将列出您 PC 上的所有硬件。选择鼠标或键盘。
除了鼠标和键盘,如果您使用任何游戏装备在 PC 上玩游戏,您还需要禁用它们的电源选项。您可以使用我们上面共享的 powercfg –lastwake命令来解决这个问题。您需要反复试验才能确定哪个设备正在唤醒设备。
注意:(Note:) 确保(Make)至少有键盘或鼠标能够唤醒。您不想每次都按下电源按钮来唤醒您的 PC。(Power)
5]局域网唤醒
如果您的 PC 已连接到网络,Wake On Lan也可以使您的 PC 重新联机。当计算机想要与网络计算机通信或发送数据或文件时,此功能会派上用场,而网络计算机应仅在请求时才联机。内置于硬件(即网络适配器)中,这可能是一个可能的原因。如果您查看我们运行命令的屏幕截图,您会注意到我们确实将以太网适配器作为唤醒设备之一。
打开设备管理器(Device Manager)(Win+X,然后按 M)。在Network adapters下,找到上面列出的那个。不要对那些列为Miniport的内容进行任何更改。
这将确保网络上的任何 PC 都无法唤醒您的 PC。但是,请务必记住这一点,以备不时之需。
6]阻止计划的Windows更新(Prevent Scheduled Windows Update)和自动(Automatic)维护
根据您的活动时间或预定义的时间表,可能是Windows 更新(Windows Update)重新启动了您的 PC 以完成更新。Windows还具有内置的自动维护(Maintenance)模式,可在设定的时间唤醒 PC 并在您的 PC 上执行所有更新。
打开Settings > Windows Update和Security > Windows Update > Select活动时间。( Active Hours.)
要更改自动维护的时间,(Automatic)请在搜索栏中输入自动(Automatic) 维护,然后单击它。您可以在此处更改时间或取消选中“允许定期维护在预定时间唤醒我的计算机(Allow scheduled maintenance to wake up my computer at the scheduled time)”框。
我希望所有这些可以帮助您解决突然唤醒您的 Windows 11/10 PC 的问题。
这里还有一点:(A little more here:)
- Windows电脑自动从睡眠中唤醒
- 防止计算机从睡眠中唤醒。
为什么我的电脑稍微移动一下就开机了?
一些用户将 PC 置于睡眠模式并忘记它。当他们绕过它时,如果不小心按下了某个键,或者蓝牙(Bluetooth)鼠标稍微移动了一点,PC 就会打开。这是正常行为,我们不建议禁用此功能;否则,您将不得不按电源(Power)按钮将其重新打开。
为什么我的电脑不断重启?
如果您的PC(PC keeps rebooting)每次从睡眠模式恢复时都会重新启动,那么这是硬件问题。这可能是因为最近的更新与Windows不兼容。您需要按照链接的指南来解决它。
我可以让我的电脑过夜吗?
是的,你可以,但我们不要让它成为一种习惯。当您需要保持一组文件打开并在第二天回来快速恢复时,睡眠模式很有用。但是,有时,您需要重新启动 PC 以清除一些卡住的东西或需要更新时。
Windows computer turns on by itself randomly
Α computеr turning on all by itself randomly cаn be very annoying. I have faced this sitυation multiple numbers of tіmes, and I hаd to make sure to turn the switch off, so there is no chance of it turning оn automatically. There could be multiрle reasons why your Wіndows 11 or Windows 10 PC turns itself on and wakes up from sleep, ѕtandby, оr even when it’s shut down. Let’s have a look at all the possible faсtors, but before that, there is a wаy to find out what woke up your computer.
Find out what woke your computer
Open a command prompt with admin privileges, and type the following command, and hit Enter:
powercfg –lastwake
This will show you the last device which woke up your PC. The second command is:
powercfg –devicequery wake_armed
This will show a list of all devices which can wake up your PC. The idea to run these commands is to understand the reason if it’s on the hardware level.
You can see from the list that there are three devices that can wake up my PC. You have the keyboard, mouse, and the Gigabit Network connection, i.e., Ethernet.
Windows 11/10 computer turns on by itself
If your Windows computer turns on by itself from Sleep at night or at any other time randomly, it can be a hardware or a software problem, and the resolution will depend on this. Here are a few suggestions that may help you.
- Disable Fast Startup
- Prevent Task Scheduler from waking up the PC
- Disable Automatic Restart
- Keyboard or Mouse Waking up your PC
- Wake on Lan
- Prevent Scheduled Windows Update & Automatic maintenance
Some of these will need admin permission.
1] Disable Fast Startup
Windows 10 comes with Fast Startup mode which doesn’t turn off your PC the usual way. Instead, it keeps it in a mixed state so when you turn on the PC again, it is much faster. According to a few experts on the form, this can be an issue, and the solution would be to disable Fast Startup.
2] Prevent Task Scheduler from waking up the PC
Sometimes it’s more of a software problem, than a hardware problem. It is possible that you are using a Scheduled Task to get some of your work done at a specific time of the day or multiple times of the day. So we need to get rid of them, and instead of deleting those tasks, we can change the Power settings of Windows to make sure it ignores those tasks when on Standby or Hybrid mode.
- Open Power Options > Click on Change Plan Settings.
- Make sure to select the right power plan, and then choose the option Change advanced Power settings.
- Look for the Sleep tree and expand it to find the option which says Allow Wake Timers. Disable it.
This will make sure that none of those programs can wake up your PC when it’s in sleep mode or shutdown mode. This applies only to Laptops.
Read: What is a Wake source for Windows PC?
3] Disable Automatic Restart
Many a time the computer crashes, and the system restart itself. This is by design. If you have left your PC on standby, and this happens, the computer will restart, and if the problem repeats, this will keep waking your PC.
- Type System on the Search bar.
- When it appears, click to launch.
- On the left, select Advanced system settings > Advanced tab
- Click on Settings under Startup and Recovery.
- Uncheck mark on Automatically Restart and click on OK.
4] Keyboard or Mouse Waking up your PC
The keyboard and mouse are some of the major culprits when it comes to waking up your PC. Maybe somebody just went by your PC, and slightly hit them, and your computer turns on. On my PC, I have set the keyboard to boot up my PC, and when my kid just pretends to be working on the keyboard, the computer comes alive.
These devices come with a power management option, and you can disable it to make sure they don’t wake up your PC unless you really want to wake them up.
Open Device Manager (Win+X and then hit M). This will list all the hardware on your PC. Select your mouse or the keyboard.
Apart from the mouse, and keyboard if you are using any gaming rig to play games on your PC, you need to disable power options for them as well. You can figure that out with the powercfg –lastwake command we shared above. You will need to do trial and error to figure out which device is waking the device.
Note: Make sure to have at least the keyboard or mouse to have the ability to wake up. You don’t want to hit the Power button every time to wake your PC.
5] Wake on Lan
If your PC is connected to a network, Wake On Lan can also bring back your PC online. This feature comes in handy when a computer wants to communicate or send data or files to a network computer which should only come online when it is requested. Built into the hardware, i.e., network adapter, this could be one possible reason. If you check the screenshot where we ran the command, you will notice that we do have the ethernet adapter as one of the wake-up devices.
Open Device Manager (Win+X and then hit M). Under Network adapters, find the one that was listed above. Do not change anything with those listed as Miniport.
This will make sure no PC on the network can wake your PC. However, make sure to remember this in case you need it.
6] Prevent Scheduled Windows Update & Automatic maintenance
Depending on your active hours or a predefined schedule, it is possible that its the Windows Update that has restarted your PC to complete the update. Windows also has an in-built Automatic Maintenance mode which wakes up the PC at the set time and performs all the updates on your PC.
Open Settings > Windows Update and Security > Windows Update > Select Active Hours.
To change the time for Automatic maintenance, type Automatic maintenance in the search bar, and click on it. Here you can change the timing or just uncheck the box ‘Allow scheduled maintenance to wake up my computer at the scheduled time‘.
I hope all these help you solve the problems which had been waking up your Windows 11/10 PC all of a sudden.
A little more here:
- Windows computer wakes from sleep automatically
- Prevent Computer from waking up from Sleep.
Why is my PC turning on over a slight movement?
Some users put the PC in sleep mode and forget about it. When they come around it, and if accidentally a key is pressed, or the Bluetooth mouse moves a bit, the PC turns on. This is normal behavior, and we would not recommend disabling this feature; else you will have to press the Power button to turn it back on.
Why does my PC keep restarting?
If your PC keeps rebooting every time it comes back from sleep mode, then it’s a hardware issue. It can be because of a recent update that is not compatible with Windows. You will need to follow the linked guide to resolve it.
Can I leave my PC on sleep overnight?
Yes, you can but let’s not make it a habit. Sleep mode is useful when you need to keep a set of files open and come back the next day to resume quickly. However, once in a while, you need to restart the PC to clear off a few things stuck or when you need to update.