🌙 NãoDorme.com

How to Keep a Windows PC Awake for Remote Access

· 7 min read

How to Keep a Windows PC Awake for Remote Access

To keep a Windows PC awake for remote access, you only have to stop it from sleeping. You don't need the screen on, and you don't need it unlocked. A sleeping PC drops off the network, which is why Remote Desktop, TeamViewer, and AnyDesk can't reach it. There are two fixes: prevent sleep on the PC you connect to and let the display turn off and the lock work as usual, or let it sleep and wake it over the network with Wake-on-LAN. The first is simple and dependable. The second saves power and takes more setup.

How to keep a Windows PC awake for remote access: the short version

Your situation What to do
A desktop you remote into daily Sleep set to Never when plugged in. Screen timeout and lock unchanged.
A laptop left at home as a server The same, plus the lid setting, and always on wall power
A long unattended job, like a render or export The same. The sleep timer is what would pause it.
You want to save power and have Ethernet Wake-on-LAN through TeamViewer or AnyDesk
A work computer Don't change it yourself. Talk to IT.

Why remote access drops

A remote access tool needs the computer to be on and connected. TeamViewer's documentation calls a sleeping or powered-off computer an offline computer, one you have to wake before a connection can be established.

The confusion comes from three states that look identical when you're staring at a dark monitor:

State Is the PC running? Can you connect?
Display off Yes Yes
Locked, asking for a password Yes Yes
Asleep No, it's paused No, unless something wakes it over the network

Only the third one cuts you off, and it arrives fast. On current Windows 11 defaults, a modern laptop sleeps after 5 minutes plugged in with nobody touching it, and an older PC after 15.

That points to the right fix. Keep it from sleeping. Leave everything else alone.

Option 1: stop the remote PC from sleeping

  1. Open Settings > System > Power & battery.
  2. Select Screen, sleep, & hibernate timeouts.
  3. Under Make my device sleep after, choose Never for when it's plugged in.
  4. Leave Turn my screen off after short. Nobody remote needs that monitor lit.

Don't touch the lock. A PC that's awake, dark, and asking for a password is exactly the state you're after.

If the remote computer is a laptop, two more things. Keep it on wall power, because on battery Windows shuts the machine down when the charge gets too low. And if it sits with the lid closed, change the lid action, which we cover in how to stop a laptop from sleeping with the lid closed.

Why not a keep-awake utility?

For one afternoon, either works. For a machine you connect to all the time, it's the wrong tool. Microsoft's documentation for PowerToys Awake says two things that matter here. Awake doesn't work while the lock screen is displayed, because the lock screen runs in a separate security context. And it's meant for use while you're at your computer. For persistent needs, Microsoft's own text says to configure the power plan directly and lock the computer.

The same applies to long unattended jobs such as a render, an export, or a big copy. Sleep is what reliably stops them. If the PC will be locked while it works, the power setting is the one that holds. I haven't checked how each program behaves in a locked session, so give yours a short test first.

Option 2: let it sleep and wake it over the network

Wake-on-LAN is a feature of the network adapter. It keeps listening while the computer sleeps and wakes it when a specific signal arrives. The PC only runs when you need it. In exchange, you need compatible hardware and some configuration.

With TeamViewer

TeamViewer documents two methods. In the simpler one, another computer on the same network, always on and running TeamViewer, forwards the wake-up request. In the other, the PC is woken through its public address, which requires a router with port forwarding.

Both assume the remote PC is connected by network cable. The Windows steps, per TeamViewer:

  1. Enable Wake-on-LAN in the BIOS.
  2. In Device Manager, open the network card's properties, go to the Power Management tab, and allow the device to wake the computer.
  3. Turn off fast startup in Control Panel, under Power Options.

TeamViewer adds that Windows and Linux PCs can be woken from sleep, from hibernation, and even from fully powered down if the hardware allows it, while Macs can only be woken from sleep.

With AnyDesk

AnyDesk's documentation lists three requirements: at least one other AnyDesk device online in the sleeping PC's network, Wake-on-LAN enabled in that PC's AnyDesk settings, and an operating system and hardware set up to support it. It recommends asking your hardware manufacturer whether your hardware supports Wake-on-LAN.

With Windows Remote Desktop

Microsoft says the PC you connect to must run Windows Pro, and that you turn the feature on under Settings > System > Remote Desktop. That page doesn't describe a built-in way to wake the PC over the network. For Remote Desktop, use option 1.

I haven't tested Wake-on-LAN in any of these tools. It depends on the motherboard, the network card, and the router, and it tends to fail silently. If the computer matters, set it up, test it several times from outside your network, and only then rely on it.

Awake is not the same as unlocked

A common worry is that leaving a PC on leaves it exposed. The exposure comes from somewhere else: an unlocked session and weak passwords.

  • Keep the screen lock on. It doesn't interfere with remote access.
  • Use a strong password on the Windows account and on the tool's unattended access.
  • Don't disable the lock to make things easier. A PC with no password that's reachable from the internet is the worst of both.

Can a keep-awake browser tab do this?

No. This site runs one of those tools, so I'd rather be the one to say it.

NãoDorme keeps a screen awake from a browser tab. For remote access it falls short in three ways, each of which I checked by using it:

  • It needs a visible tab in an open session. A PC waiting for remote connections should be locked. Once it's locked, the tab isn't visible and the browser drops the lock.
  • The effect covers the entire screen. Connect from far away and all you'd see is the animation. To get any work done you'd close it with Esc, and the moment you do, the sleep timer starts counting again.
  • The longest timed session is 2 hours. Remote access is a matter of days.

It's built for keeping a screen lit while you're near it. For a computer sitting alone waiting for a connection, the system power setting is the answer.

Dropped anyway? What to check

The wrong column. There's one sleep timer for battery and one for plugged in. Check the plugged-in one, and check the charger.

Hibernate. The same timeouts page includes hibernation, which also takes the PC off the network.

The laptop lid. Closed, it sleeps, unless you changed the lid action.

The app didn't start with Windows. After a reboot, TeamViewer or AnyDesk has to launch by itself. TeamViewer lists that as a requirement.

The network dropped, not the PC. A rebooted router, flaky Wi-Fi, or an ISP outage looks exactly the same from the outside. A computer that takes remote connections is better off on a cable.

Something told it to sleep. On Windows, powercfg /requests in an administrator Terminal shows what's currently holding the system awake. If you changed the setting and a work PC still sleeps, an organization policy is probably in force, and that's a question for IT.

Frequently asked questions

Does remote access work while the PC is locked?
Yes. Locking the screen turns nothing off. The computer is still running and on the network, and it asks for a password. What cuts remote access is sleep. So the right setup is no sleep, lock on.
Does it work with the monitor off?
Yes. Display-off and sleep are different things with separate timers. Let the screen turn off as usual on the computer you connect to.
Can I wake a sleeping PC over the internet?
Yes, with Wake-on-LAN, if the hardware supports it and the setup is done. TeamViewer and AnyDesk both offer it, with their own requirements: generally a wired connection and another device that stays on in the same network, or a public address with port forwarding on the router.
Does Remote Desktop work on Windows Home?
Not as the PC you connect to. Microsoft says the remote PC must be running the Pro edition of Windows. The device you connect from can run any edition, or another operating system.
Will locking my PC stop a long render or export?
Locking doesn't put the PC to sleep. It puts up the sign-in screen. Sleep is what pauses everything. I haven't checked how individual render programs behave in a locked session, so run a short test with yours. And note that Microsoft says PowerToys Awake doesn't work while the lock screen is showing, so use the sleep timer in the power settings.

Keep reading