Use your phone to send a command to your PC to enter sleep mode.
Use your phone to send a command to your PC to enter sleep mode.
The nearest built-in Windows feature is Dynamic Lock. It appears in Settings > Accounts > Sign-in Options. If no activity has been detected for 30 seconds and you're away (your phone is out of reach), the system will automatically lock you in and may shut down according to your settings. Otherwise, you can press Win+L or use a keyboard with dedicated Sleep or Lock buttons.