Windows 10: How to Lock (not sleep) laptop on lid close? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Command-line (cmd) command to lock a windows machinePrevent laptop from going to sleep when I close the lid, but only if I'm connected to an external displayWindows 8: How to Lock (not sleep) laptop on lid close?Stop laptop from resuming from sleep by opening the lidAutomatically lock screen on lid close in Windows 7Close lid to sleep just about and open lid to wake up asap without requiring password if done soon enoughMy laptop will not sleep when I close the lidSet Windows to prompt for password when opening lid, but not go to sleepDelay sleep/login page when closing laptop lid on Windows?Windows 8.1 Laptop; Is there a way for closed lid to cause sleep but not when there is a monitor hooked up?How to have my laptop go to sleep when unplugged while lid shut? (Don't want it to go to sleep when closing lid and plugged in)
Export Xpubkey from Bitcoin Core
Source for Esri sample data from 911 Hot Spot Analysis
Why does the remaining Rebel fleet at the end of Rogue One seem dramatically larger than the one in A New Hope?
Take 2! Is this homebrew Lady of Pain warlock patron balanced?
Is CEO the "profession" with the most psychopaths?
Chinese Seal on silk painting - what does it mean?
Denied boarding although I have proper visa and documentation. To whom should I make a complaint?
Maximum summed subsequences with non-adjacent items
Why do we bend a book to keep it straight?
Find 108 by using 3,4,6
Dating a Former Employee
How to write this math term? with cases it isn't working
Is it fair for a professor to grade us on the possession of past papers?
Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?
Can an alien society believe that their star system is the universe?
How to react to hostile behavior from a senior developer?
Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?
Using audio cues to encourage good posture
Did Krishna say in Bhagavad Gita "I am in every living being"
Is there any word for a place full of confusion?
Is there hard evidence that the grant peer review system performs significantly better than random?
Performance gap between bool std:vector and array
How to install press fit bottom bracket into new frame
Do I really need to have a message in a novel to appeal to readers?
Windows 10: How to Lock (not sleep) laptop on lid close?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Command-line (cmd) command to lock a windows machinePrevent laptop from going to sleep when I close the lid, but only if I'm connected to an external displayWindows 8: How to Lock (not sleep) laptop on lid close?Stop laptop from resuming from sleep by opening the lidAutomatically lock screen on lid close in Windows 7Close lid to sleep just about and open lid to wake up asap without requiring password if done soon enoughMy laptop will not sleep when I close the lidSet Windows to prompt for password when opening lid, but not go to sleepDelay sleep/login page when closing laptop lid on Windows?Windows 8.1 Laptop; Is there a way for closed lid to cause sleep but not when there is a monitor hooked up?How to have my laptop go to sleep when unplugged while lid shut? (Don't want it to go to sleep when closing lid and plugged in)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
If my laptop is plugged in I want closing the lid to automatically lock the computer, without putting it to sleep. I don't see an option to do this in Power Options:

Is there a hack to achieve this?
windows-10 laptop lock-screen lid
add a comment |
If my laptop is plugged in I want closing the lid to automatically lock the computer, without putting it to sleep. I don't see an option to do this in Power Options:

Is there a hack to achieve this?
windows-10 laptop lock-screen lid
6
This is generally a bad idea: your laptop dissipates a good deal of heat through the keyboard, and if you leave the computer running with the lid closed, you risk overheating things.
– Mark
Apr 12 at 21:23
17
@Mark: ...and yet you can set it to keep running full blast when you close the lid, without frying anything.
– Sean
Apr 13 at 3:26
add a comment |
If my laptop is plugged in I want closing the lid to automatically lock the computer, without putting it to sleep. I don't see an option to do this in Power Options:

Is there a hack to achieve this?
windows-10 laptop lock-screen lid
If my laptop is plugged in I want closing the lid to automatically lock the computer, without putting it to sleep. I don't see an option to do this in Power Options:

Is there a hack to achieve this?
windows-10 laptop lock-screen lid
windows-10 laptop lock-screen lid
edited Apr 12 at 17:51
feetwet
asked Apr 12 at 16:57
feetwetfeetwet
297418
297418
6
This is generally a bad idea: your laptop dissipates a good deal of heat through the keyboard, and if you leave the computer running with the lid closed, you risk overheating things.
– Mark
Apr 12 at 21:23
17
@Mark: ...and yet you can set it to keep running full blast when you close the lid, without frying anything.
– Sean
Apr 13 at 3:26
add a comment |
6
This is generally a bad idea: your laptop dissipates a good deal of heat through the keyboard, and if you leave the computer running with the lid closed, you risk overheating things.
– Mark
Apr 12 at 21:23
17
@Mark: ...and yet you can set it to keep running full blast when you close the lid, without frying anything.
– Sean
Apr 13 at 3:26
6
6
This is generally a bad idea: your laptop dissipates a good deal of heat through the keyboard, and if you leave the computer running with the lid closed, you risk overheating things.
– Mark
Apr 12 at 21:23
This is generally a bad idea: your laptop dissipates a good deal of heat through the keyboard, and if you leave the computer running with the lid closed, you risk overheating things.
– Mark
Apr 12 at 21:23
17
17
@Mark: ...and yet you can set it to keep running full blast when you close the lid, without frying anything.
– Sean
Apr 13 at 3:26
@Mark: ...and yet you can set it to keep running full blast when you close the lid, without frying anything.
– Sean
Apr 13 at 3:26
add a comment |
3 Answers
3
active
oldest
votes
As far as I know, there is no built-in function to achieve this. But you can do this using a third party tool.
One of them is LapLock. This program is a lightweight (<50KB), open source tool and it's developed by Etienne Dechamps.
Steps...
Download the program - https://github.com/dechamps/laplock/releases
(Download the latest laplock.exe release)Open the Windows Startup folder by using this run command - '
shell:common startup'Add laplock.exe to your Startup folder.
You can also use Lid Lock to do this.
add a comment |
Set "Do Nothing",
lock your laptop using Windows key+L, and then you can close the lid.
New contributor
saidi_amine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
15
This is the most practical solution. I am always suspicious of any software that chooses to customize something which Windows has built in. I'm looking at you pre-installed "WiFi Booster/manager" crapware!
– MonkeyZeus
Apr 12 at 19:09
1
It would seem this should be something you can configure in the registry (if not, Microsoft should make it so).
– Jonathan
Apr 12 at 20:40
15
OP:I want closing the lid to automatically lock the computerso this doesn't answer the question.
– Agent_L
Apr 13 at 15:39
6
Please do NOT upvote an answer without reading it carefully. This does NOT answer the question and should be DOWN voted (and I would be willing to bet the OP knows he can manually lock his computer before closing the lid) . The site's value diminishes for everyone if we push non-answers to the top by upvoting them.
– Jon Bentley
Apr 14 at 17:16
3
I'm downvoting this answer because it does not answer the question "how to automatically lock the computer"
– BurnsBA
Apr 15 at 1:35
|
show 7 more comments
Two steps:
- Capture the close lid event.
- Trigger a lock-screen event.
See: Capturing laptop lid closing event in windows?, and Command-line (cmd) command to lock a windows machine.
From those sources, we can use RegisterPowerSettingNotification and GUID_LIDSWITCH_STATE_CHANGE to detect the trigger, and run:
rundll32.exe user32.dll,LockWorkStation
from the command line to send a lock screen request to the machine.
I don't know what compilers you have available, or what languages you know, but this information should help you set up a program to do it for you.
I don't use Windows myself, so I can't build or test it for you.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "3"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1424774%2fwindows-10-how-to-lock-not-sleep-laptop-on-lid-close%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
As far as I know, there is no built-in function to achieve this. But you can do this using a third party tool.
One of them is LapLock. This program is a lightweight (<50KB), open source tool and it's developed by Etienne Dechamps.
Steps...
Download the program - https://github.com/dechamps/laplock/releases
(Download the latest laplock.exe release)Open the Windows Startup folder by using this run command - '
shell:common startup'Add laplock.exe to your Startup folder.
You can also use Lid Lock to do this.
add a comment |
As far as I know, there is no built-in function to achieve this. But you can do this using a third party tool.
One of them is LapLock. This program is a lightweight (<50KB), open source tool and it's developed by Etienne Dechamps.
Steps...
Download the program - https://github.com/dechamps/laplock/releases
(Download the latest laplock.exe release)Open the Windows Startup folder by using this run command - '
shell:common startup'Add laplock.exe to your Startup folder.
You can also use Lid Lock to do this.
add a comment |
As far as I know, there is no built-in function to achieve this. But you can do this using a third party tool.
One of them is LapLock. This program is a lightweight (<50KB), open source tool and it's developed by Etienne Dechamps.
Steps...
Download the program - https://github.com/dechamps/laplock/releases
(Download the latest laplock.exe release)Open the Windows Startup folder by using this run command - '
shell:common startup'Add laplock.exe to your Startup folder.
You can also use Lid Lock to do this.
As far as I know, there is no built-in function to achieve this. But you can do this using a third party tool.
One of them is LapLock. This program is a lightweight (<50KB), open source tool and it's developed by Etienne Dechamps.
Steps...
Download the program - https://github.com/dechamps/laplock/releases
(Download the latest laplock.exe release)Open the Windows Startup folder by using this run command - '
shell:common startup'Add laplock.exe to your Startup folder.
You can also use Lid Lock to do this.
edited Apr 14 at 19:26
fixer1234
19.6k145083
19.6k145083
answered Apr 12 at 17:52
DxTxDxTx
641317
641317
add a comment |
add a comment |
Set "Do Nothing",
lock your laptop using Windows key+L, and then you can close the lid.
New contributor
saidi_amine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
15
This is the most practical solution. I am always suspicious of any software that chooses to customize something which Windows has built in. I'm looking at you pre-installed "WiFi Booster/manager" crapware!
– MonkeyZeus
Apr 12 at 19:09
1
It would seem this should be something you can configure in the registry (if not, Microsoft should make it so).
– Jonathan
Apr 12 at 20:40
15
OP:I want closing the lid to automatically lock the computerso this doesn't answer the question.
– Agent_L
Apr 13 at 15:39
6
Please do NOT upvote an answer without reading it carefully. This does NOT answer the question and should be DOWN voted (and I would be willing to bet the OP knows he can manually lock his computer before closing the lid) . The site's value diminishes for everyone if we push non-answers to the top by upvoting them.
– Jon Bentley
Apr 14 at 17:16
3
I'm downvoting this answer because it does not answer the question "how to automatically lock the computer"
– BurnsBA
Apr 15 at 1:35
|
show 7 more comments
Set "Do Nothing",
lock your laptop using Windows key+L, and then you can close the lid.
New contributor
saidi_amine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
15
This is the most practical solution. I am always suspicious of any software that chooses to customize something which Windows has built in. I'm looking at you pre-installed "WiFi Booster/manager" crapware!
– MonkeyZeus
Apr 12 at 19:09
1
It would seem this should be something you can configure in the registry (if not, Microsoft should make it so).
– Jonathan
Apr 12 at 20:40
15
OP:I want closing the lid to automatically lock the computerso this doesn't answer the question.
– Agent_L
Apr 13 at 15:39
6
Please do NOT upvote an answer without reading it carefully. This does NOT answer the question and should be DOWN voted (and I would be willing to bet the OP knows he can manually lock his computer before closing the lid) . The site's value diminishes for everyone if we push non-answers to the top by upvoting them.
– Jon Bentley
Apr 14 at 17:16
3
I'm downvoting this answer because it does not answer the question "how to automatically lock the computer"
– BurnsBA
Apr 15 at 1:35
|
show 7 more comments
Set "Do Nothing",
lock your laptop using Windows key+L, and then you can close the lid.
New contributor
saidi_amine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Set "Do Nothing",
lock your laptop using Windows key+L, and then you can close the lid.
New contributor
saidi_amine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Apr 12 at 18:08
GabrielaGarcia
725415
725415
New contributor
saidi_amine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered Apr 12 at 17:27
saidi_aminesaidi_amine
2433
2433
New contributor
saidi_amine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
saidi_amine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
saidi_amine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
15
This is the most practical solution. I am always suspicious of any software that chooses to customize something which Windows has built in. I'm looking at you pre-installed "WiFi Booster/manager" crapware!
– MonkeyZeus
Apr 12 at 19:09
1
It would seem this should be something you can configure in the registry (if not, Microsoft should make it so).
– Jonathan
Apr 12 at 20:40
15
OP:I want closing the lid to automatically lock the computerso this doesn't answer the question.
– Agent_L
Apr 13 at 15:39
6
Please do NOT upvote an answer without reading it carefully. This does NOT answer the question and should be DOWN voted (and I would be willing to bet the OP knows he can manually lock his computer before closing the lid) . The site's value diminishes for everyone if we push non-answers to the top by upvoting them.
– Jon Bentley
Apr 14 at 17:16
3
I'm downvoting this answer because it does not answer the question "how to automatically lock the computer"
– BurnsBA
Apr 15 at 1:35
|
show 7 more comments
15
This is the most practical solution. I am always suspicious of any software that chooses to customize something which Windows has built in. I'm looking at you pre-installed "WiFi Booster/manager" crapware!
– MonkeyZeus
Apr 12 at 19:09
1
It would seem this should be something you can configure in the registry (if not, Microsoft should make it so).
– Jonathan
Apr 12 at 20:40
15
OP:I want closing the lid to automatically lock the computerso this doesn't answer the question.
– Agent_L
Apr 13 at 15:39
6
Please do NOT upvote an answer without reading it carefully. This does NOT answer the question and should be DOWN voted (and I would be willing to bet the OP knows he can manually lock his computer before closing the lid) . The site's value diminishes for everyone if we push non-answers to the top by upvoting them.
– Jon Bentley
Apr 14 at 17:16
3
I'm downvoting this answer because it does not answer the question "how to automatically lock the computer"
– BurnsBA
Apr 15 at 1:35
15
15
This is the most practical solution. I am always suspicious of any software that chooses to customize something which Windows has built in. I'm looking at you pre-installed "WiFi Booster/manager" crapware!
– MonkeyZeus
Apr 12 at 19:09
This is the most practical solution. I am always suspicious of any software that chooses to customize something which Windows has built in. I'm looking at you pre-installed "WiFi Booster/manager" crapware!
– MonkeyZeus
Apr 12 at 19:09
1
1
It would seem this should be something you can configure in the registry (if not, Microsoft should make it so).
– Jonathan
Apr 12 at 20:40
It would seem this should be something you can configure in the registry (if not, Microsoft should make it so).
– Jonathan
Apr 12 at 20:40
15
15
OP:
I want closing the lid to automatically lock the computer so this doesn't answer the question.– Agent_L
Apr 13 at 15:39
OP:
I want closing the lid to automatically lock the computer so this doesn't answer the question.– Agent_L
Apr 13 at 15:39
6
6
Please do NOT upvote an answer without reading it carefully. This does NOT answer the question and should be DOWN voted (and I would be willing to bet the OP knows he can manually lock his computer before closing the lid) . The site's value diminishes for everyone if we push non-answers to the top by upvoting them.
– Jon Bentley
Apr 14 at 17:16
Please do NOT upvote an answer without reading it carefully. This does NOT answer the question and should be DOWN voted (and I would be willing to bet the OP knows he can manually lock his computer before closing the lid) . The site's value diminishes for everyone if we push non-answers to the top by upvoting them.
– Jon Bentley
Apr 14 at 17:16
3
3
I'm downvoting this answer because it does not answer the question "how to automatically lock the computer"
– BurnsBA
Apr 15 at 1:35
I'm downvoting this answer because it does not answer the question "how to automatically lock the computer"
– BurnsBA
Apr 15 at 1:35
|
show 7 more comments
Two steps:
- Capture the close lid event.
- Trigger a lock-screen event.
See: Capturing laptop lid closing event in windows?, and Command-line (cmd) command to lock a windows machine.
From those sources, we can use RegisterPowerSettingNotification and GUID_LIDSWITCH_STATE_CHANGE to detect the trigger, and run:
rundll32.exe user32.dll,LockWorkStation
from the command line to send a lock screen request to the machine.
I don't know what compilers you have available, or what languages you know, but this information should help you set up a program to do it for you.
I don't use Windows myself, so I can't build or test it for you.
add a comment |
Two steps:
- Capture the close lid event.
- Trigger a lock-screen event.
See: Capturing laptop lid closing event in windows?, and Command-line (cmd) command to lock a windows machine.
From those sources, we can use RegisterPowerSettingNotification and GUID_LIDSWITCH_STATE_CHANGE to detect the trigger, and run:
rundll32.exe user32.dll,LockWorkStation
from the command line to send a lock screen request to the machine.
I don't know what compilers you have available, or what languages you know, but this information should help you set up a program to do it for you.
I don't use Windows myself, so I can't build or test it for you.
add a comment |
Two steps:
- Capture the close lid event.
- Trigger a lock-screen event.
See: Capturing laptop lid closing event in windows?, and Command-line (cmd) command to lock a windows machine.
From those sources, we can use RegisterPowerSettingNotification and GUID_LIDSWITCH_STATE_CHANGE to detect the trigger, and run:
rundll32.exe user32.dll,LockWorkStation
from the command line to send a lock screen request to the machine.
I don't know what compilers you have available, or what languages you know, but this information should help you set up a program to do it for you.
I don't use Windows myself, so I can't build or test it for you.
Two steps:
- Capture the close lid event.
- Trigger a lock-screen event.
See: Capturing laptop lid closing event in windows?, and Command-line (cmd) command to lock a windows machine.
From those sources, we can use RegisterPowerSettingNotification and GUID_LIDSWITCH_STATE_CHANGE to detect the trigger, and run:
rundll32.exe user32.dll,LockWorkStation
from the command line to send a lock screen request to the machine.
I don't know what compilers you have available, or what languages you know, but this information should help you set up a program to do it for you.
I don't use Windows myself, so I can't build or test it for you.
edited Apr 14 at 19:32
fixer1234
19.6k145083
19.6k145083
answered Apr 14 at 12:26
mazunkimazunki
2005
2005
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1424774%2fwindows-10-how-to-lock-not-sleep-laptop-on-lid-close%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
6
This is generally a bad idea: your laptop dissipates a good deal of heat through the keyboard, and if you leave the computer running with the lid closed, you risk overheating things.
– Mark
Apr 12 at 21:23
17
@Mark: ...and yet you can set it to keep running full blast when you close the lid, without frying anything.
– Sean
Apr 13 at 3:26