{"id":1122,"date":"2021-06-15T12:42:28","date_gmt":"2021-06-15T12:42:28","guid":{"rendered":"https:\/\/www.velaninfo.com\/rs\/?post_type=techtips&#038;p=1122"},"modified":"2021-06-15T12:42:28","modified_gmt":"2021-06-15T12:42:28","slug":"gpo-to-enable-windows-lock-screen-after-inactivity","status":"publish","type":"techtips","link":"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/","title":{"rendered":"How to use GPO to enable Windows Lock Screen after inactivity?"},"content":{"rendered":"<p>In this post, we&#8217;ll show you how to use Group Policy to setup automatic screen (session) lock on domain workstations and servers. An important aspect of information security is locking the computer screen when the user is inactive (idle). When the user needs to leave the office for a short time, he may forget to lock his desktop (using the keyboard shortcut Win + L).<\/p>\n<p>In this circumstance, every adjacent employee or client has access to his information. This problem will be fixed by enforcing the auto-lock screen policy. The user&#8217;s desktop will be automatically locked after a period of inactivity (idle), and the user will need to re-enter their domain password to return to the session.<\/p>\n<p>To handle screen lock settings, let&#8217;s build and set a domain Group Policy:<\/p>\n<p>Create a new GPO object (LockScreenPolicy) and link it to the domain root (or the Users OU) in the Group Policy Management console (gpmc.msc).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1123\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-1-1.png\" alt=\"Group Policy Management console \" width=\"537\" height=\"296\" \/><\/p>\n<ol>\n<li>Make changes to the policy Go to User Configuration -&gt; Policies -&gt; Administrative Templates -&gt; Control Panel -&gt; Personalization and make changes.<\/li>\n<li>In the GPO area, there are some options for managing screen saver and screen lock settings:Enable screen saver\n<ol>\n<li>Password protect the screen saver \u2014 requires a password to unlock a computer;<\/li>\n<li>Screen saver timeout \u2013 specifies the amount of time in seconds after which a screen saver will be enabled and a computer will be locked if a user is inactive;<\/li>\n<li>Force specific screen saver \u2013 specifies the screen saver file to be used. Scrnsave.scr is the most common (you can make a slideshow screen saver using GPO)<\/li>\n<li>Prohibits users from altering the screen saver settings \u2014 prevents users from altering the screen saver settings.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>In the Screen saver timeout policy, enable all rules and set a computer idle time. I&#8217;ve input the number 300. It means that after 5 minutes, user sessions will be automatically locked.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1124\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-2-1.png\" alt=\"slideshow screen saver using GPO\" width=\"1004\" height=\"366\" srcset=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-2-1.png 1004w, https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-2-1-768x280.png 768w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><\/p>\n<ol>\n<li>Wait for the Group Policy settings on the clients to be updated, or manually refresh them with the command gpupdate \/force. Screen saver and screen lock settings will be blocked from editing in the Windows interface after the GPO is activated, and user sessions will be locked after 5 minutes of inactivity.<\/li>\n<li>There is a distinct computer security policy in Windows Server 2012\/Windows 8 or newer that sets a computer inactivity time after which it is locked. This policy is called Interactive logon: This policy is You may locate it in Computer Configuration -&gt; Windows Settings -&gt; Security Settings -&gt; Local Policies -&gt; Security Options<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1125\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-3-2.png\" alt=\"computer security policy in Windows Server 2012\/Windows 8\" width=\"713\" height=\"415\" \/><\/p>\n<p>You may need to set up various lock policies for various user groups in some circumstances. For example, office workers&#8217; screens should be locked after 10 minutes, but production or operators&#8217; screens should never be locked. You can use GPO Security Filtering or Item Level Targeting in GPP to implement such a strategy. Let&#8217;s take a closer look at the latter.<\/p>\n<p>Instead of utilising GPO, you can utilise the registry to configure computer lock settings and then GPO to deploy the registry settings to users&#8217; computers. The registry settings listed below correspond to the policies mentioned above. They can be found in the<\/p>\n<p><strong>HKEY_CURRENT_USER\\Software\\Policies\\Microsoft\\Windows\\Control Panel\\Desktop<\/strong>:<\/p>\n<p><em>A REG SZ option named ScreenSaverIsSecure = is used to protect the screen saver with a password.<\/em><\/p>\n<p><em>ScreenSaveTimeout = 300 is a REG SZ parameter for the screen saver timeout.<\/em><\/p>\n<p>ScreenSaveActive = 1 and SCRNSAVE.EXE = scrnsave.scr are REG SZ parameters that force a certain screen saver.<\/p>\n<p>To disable the screen lock policy, create a domain security group (grp not-lock-prod) and add users to it. In the applicable GPO area (User Configuration -&gt; Preferences -&gt; Windows Settings -&gt; Registry), create the registry parameters specified above. Set the policy not to apply for the specific security group for each parameter using Item Level Targeting.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1126\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-4-2.png\" alt=\"create a domain security group\" width=\"818\" height=\"386\" srcset=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-4-2.png 818w, https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-4-2-768x362.png 768w\" sizes=\"auto, (max-width: 818px) 100vw, 818px\" \/><\/p>\n<p>You&#8217;ll also need to add four more registry parameters with the value REG SZ 0 to force the group grp not-lock-prod to disable<\/p>\n<p>At <strong>Velan<\/strong>, our server support engineers can manage group policy on your server.\u00a0If you are interested in our service, please fill the Quick connect form to <a href=\"https:\/\/www.velaninfo.com\/contact\"><strong>get in touch with us<\/strong><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, we&#8217;ll show you how to use Group Policy to setup automatic screen (session) lock on domain workstations and servers. An important aspect of information security is locking the computer screen when the user is inactive (idle). When the user needs to leave the office for a short time, he may forget to&#8230;<a class=\"continue-reading text-uppercase\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/\"> Continue Reading <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/themes\/velaninfo\/images\/reading_arw.png\" alt=\"Continue Reading\" width=\"16\" height=\"12\"\/><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-1122","techtips","type-techtips","status-publish","hentry","Categories_tech_tip-core-server-windows","Categories_tech_tip-gpo","Categories_tech_tip-server-windows","Categories_tech_tip-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to use GPO to enable Windows Lock Screen after inactivity | Velan<\/title>\n<meta name=\"description\" content=\"How do I lock my computer screen after inactivity? Tab to use GPO to enable Windows 10 Lock Screen after inactivity\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use GPO to enable Windows Lock Screen after inactivity?\" \/>\n<meta property=\"og:description\" content=\"How do I lock my computer screen after inactivity? Tab to use GPO to enable Windows 10 Lock Screen after inactivity\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/\" \/>\n<meta property=\"og:site_name\" content=\"Velan\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-1-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/gpo-to-enable-windows-lock-screen-after-inactivity\\\/\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/gpo-to-enable-windows-lock-screen-after-inactivity\\\/\",\"name\":\"How to use GPO to enable Windows Lock Screen after inactivity | Velan\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/gpo-to-enable-windows-lock-screen-after-inactivity\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/gpo-to-enable-windows-lock-screen-after-inactivity\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/Untitled-1-1.png\",\"datePublished\":\"2021-06-15T12:42:28+00:00\",\"description\":\"How do I lock my computer screen after inactivity? Tab to use GPO to enable Windows 10 Lock Screen after inactivity\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/gpo-to-enable-windows-lock-screen-after-inactivity\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/gpo-to-enable-windows-lock-screen-after-inactivity\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/gpo-to-enable-windows-lock-screen-after-inactivity\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/Untitled-1-1.png\",\"contentUrl\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/Untitled-1-1.png\",\"width\":537,\"height\":296,\"caption\":\"Group Policy Management console\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/gpo-to-enable-windows-lock-screen-after-inactivity\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tips\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to use GPO to enable Windows Lock Screen after inactivity?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\",\"name\":\"Velan\",\"description\":\"Velaninfo Services India Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to use GPO to enable Windows Lock Screen after inactivity | Velan","description":"How do I lock my computer screen after inactivity? Tab to use GPO to enable Windows 10 Lock Screen after inactivity","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/","og_locale":"en_US","og_type":"article","og_title":"How to use GPO to enable Windows Lock Screen after inactivity?","og_description":"How do I lock my computer screen after inactivity? Tab to use GPO to enable Windows 10 Lock Screen after inactivity","og_url":"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/","og_site_name":"Velan","og_image":[{"url":"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-1-1.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/","url":"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/","name":"How to use GPO to enable Windows Lock Screen after inactivity | Velan","isPartOf":{"@id":"https:\/\/www.velaninfo.com\/rs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/#primaryimage"},"image":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/#primaryimage"},"thumbnailUrl":"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-1-1.png","datePublished":"2021-06-15T12:42:28+00:00","description":"How do I lock my computer screen after inactivity? Tab to use GPO to enable Windows 10 Lock Screen after inactivity","breadcrumb":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/#primaryimage","url":"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-1-1.png","contentUrl":"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/06\/Untitled-1-1.png","width":537,"height":296,"caption":"Group Policy Management console"},{"@type":"BreadcrumbList","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/gpo-to-enable-windows-lock-screen-after-inactivity\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.velaninfo.com\/rs\/"},{"@type":"ListItem","position":2,"name":"Tech Tips","item":"https:\/\/www.velaninfo.com\/rs\/techtips\/"},{"@type":"ListItem","position":3,"name":"How to use GPO to enable Windows Lock Screen after inactivity?"}]},{"@type":"WebSite","@id":"https:\/\/www.velaninfo.com\/rs\/#website","url":"https:\/\/www.velaninfo.com\/rs\/","name":"Velan","description":"Velaninfo Services India Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips"}],"about":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/types\/techtips"}],"author":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/comments?post=1122"}],"version-history":[{"count":1,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1122\/revisions"}],"predecessor-version":[{"id":1127,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1122\/revisions\/1127"}],"wp:attachment":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/media?parent=1122"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/tags?post=1122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}