{"id":1215,"date":"2021-07-31T04:32:22","date_gmt":"2021-07-31T04:32:22","guid":{"rendered":"http:\/\/www.tech-g.com\/?p=1215"},"modified":"2022-10-11T12:57:17","modified_gmt":"2022-10-11T12:57:17","slug":"lock-pc-after-20-minutes","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2021\/07\/31\/lock-pc-after-20-minutes\/","title":{"rendered":"Lock PC after 20 minutes"},"content":{"rendered":"\n<p>I am not that great with windows, a look at all the posts on this blog will tell you that, Now with that said, I need to lock my laptop (Windows !) after a few minutes of inactivity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1\/3: Check if you have Security policy installed<\/h2>\n\n\n\n<p>Windows 11 HOME shipped without this tool, as it came in the pro and the enterprise. to figure out if you have the tool, Hit start and start typing secpol.msc, if all you see is a suggestion to do a web search instead of an Application, you do not have it, the next step will explain how to install it, If it is indeed there, you can skip step 2 and go to step 3 right away<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1\/2: Installing GroupPolicy<\/h2>\n\n\n\n<p>You only need to do this if in the step above it turned out that Group Policy is not installed on your system.<\/p>\n\n\n\n<p>To Install\/Enable Local Security Policy (secpol.msc), you will need to install Group Policy, to get that directly from Microsoft, you can <strong>run the following script as administrator<\/strong> (Download link also provided <strong>gpedit-enabler.bat<\/strong>), this is courtesy of Major Geeks<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">@echo off \n@echo \"This batch file from MajorGeeks.Com will enable Group Policy Editor (Gpedit.msc) on Windows 10 Home.\"\n@echo \"If this method fails, there are other methods to try at https:\/\/tinyurl.com\/majorgeeksgpedit\"\npushd \"%~dp0\" \n\ndir \/b %SystemRoot%\\servicing\\Packages\\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum &gt;List.txt \ndir \/b %SystemRoot%\\servicing\\Packages\\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum &gt;&gt;List.txt \n\nfor \/f %%i in ('findstr \/i . List.txt 2^&gt;nul') do dism \/online \/norestart \/add-package:\"%SystemRoot%\\servicing\\Packages\\%%i\" \npause<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3\/3: Modify security policy to lock screen after 20 minutes<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">To do that, you run <em>secpol.msc<\/em>, then look for \n\nLocal Policies > Security Options \u201cInteractive Logon: Machine inactivity limit\u201d and set that to 1200 (20 minutes), \n\nthen restart the computer<\/pre>\n\n\n\n<p id=\"block-7ba61c8f-e98e-487e-a834-f6cd4fcc5791\">and there you have it, the windows login screen will appear after 20 minutes of inactivity, you don&#8217;t need to set a screensaver or even connect this to your screen timeout (which is 10 minutes in my case)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Notes about the installation<\/h2>\n\n\n\n<p>Running the above batch file as administrator should result in the following being printed.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\"This batch file from MajorGeeks.Com will enable Group Policy Editor (Gpedit.msc) on Windows 10 Home.\"\n\"If this method fails, there are other methods to try at https:\/\/tinyurl.com\/majorgeeksgpedit\"\n\nDeployment Image Servicing and Management tool\nVersion: 10.0.22621.1\n\nImage Version: 10.0.22621.608\n\nProcessing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientExtensions-Package~31bf3856ad364e35~amd64~ar-SA~10.0.22621.1\n[==========================100.0%==========================]\nThe operation completed successfully.\n\nDeployment Image Servicing and Management tool\nVersion: 10.0.22621.1\n\nImage Version: 10.0.22621.608\n\nProcessing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientExtensions-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1\n[==========================100.0%==========================]\nThe operation completed successfully.\n\nDeployment Image Servicing and Management tool\nVersion: 10.0.22621.1\n\nImage Version: 10.0.22621.608\n\nProcessing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientExtensions-Package~31bf3856ad364e35~amd64~~10.0.22621.521\n[==========================100.0%==========================]\nThe operation completed successfully.\n\nDeployment Image Servicing and Management tool\nVersion: 10.0.22621.1\n\nImage Version: 10.0.22621.608\n\nProcessing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientExtensions-Package~31bf3856ad364e35~amd64~~10.0.22621.608\n[==========================100.0%==========================]\nThe operation completed successfully.\n\nDeployment Image Servicing and Management tool\nVersion: 10.0.22621.1\n\nImage Version: 10.0.22621.608\n\nProcessing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~ar-SA~10.0.22621.1\n[==========================100.0%==========================]\nThe operation completed successfully.\n\nDeployment Image Servicing and Management tool\nVersion: 10.0.22621.1\n\nImage Version: 10.0.22621.608\n\nProcessing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~ar-SA~10.0.22621.608\n[==========================100.0%==========================]\nThe operation completed successfully.\n\nDeployment Image Servicing and Management tool\nVersion: 10.0.22621.1\n\nImage Version: 10.0.22621.608\n\nProcessing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.457\n[==========================100.0%==========================]\nThe operation completed successfully.\n\nDeployment Image Servicing and Management tool\nVersion: 10.0.22621.1\n\nImage Version: 10.0.22621.608\n\nProcessing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.608\n[==========================100.0%==========================]\nThe operation completed successfully.\n\nDeployment Image Servicing and Management tool\nVersion: 10.0.22621.1\n\nImage Version: 10.0.22621.608\n\nProcessing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~~10.0.22621.457\n[==========================100.0%==========================]\nThe operation completed successfully.\n\nDeployment Image Servicing and Management tool\nVersion: 10.0.22621.1\n\nImage Version: 10.0.22621.608\n\nProcessing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~~10.0.22621.608\n[==========================100.0%==========================]\nThe operation completed successfully.\nPress any key to continue . . .\n\n\n<\/pre>\n\n\n\n<p>In addition to the above, A file should be produced in the same folder as the batch file named List.txt, in my case, the file had the following contents<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Microsoft-Windows-GroupPolicy-ClientExtensions-Package~31bf3856ad364e35~amd64~ar-SA~10.0.22621.1.mum\nMicrosoft-Windows-GroupPolicy-ClientExtensions-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1.mum\nMicrosoft-Windows-GroupPolicy-ClientExtensions-Package~31bf3856ad364e35~amd64~~10.0.22621.521.mum\nMicrosoft-Windows-GroupPolicy-ClientExtensions-Package~31bf3856ad364e35~amd64~~10.0.22621.608.mum\nMicrosoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~ar-SA~10.0.22621.1.mum\nMicrosoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~ar-SA~10.0.22621.608.mum\nMicrosoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.457.mum\nMicrosoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.608.mum\nMicrosoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~~10.0.22621.457.mum\nMicrosoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~~10.0.22621.608.mum<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I am not that great with windows, a look at all the posts on this blog will tell you that, Now with that said, I need to lock my laptop (Windows !) after a few minutes of inactivity. Step 1\/3: Check if you have Security policy installed Windows 11 HOME shipped without this tool, as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159,17],"tags":[],"class_list":["post-1215","post","type-post","status-publish","format-standard","hentry","category-security","category-windows"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=1215"}],"version-history":[{"count":8,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1215\/revisions"}],"predecessor-version":[{"id":1940,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1215\/revisions\/1940"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=1215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=1215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=1215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}