{"id":165109,"date":"2024-02-29T13:06:36","date_gmt":"2024-02-29T18:06:36","guid":{"rendered":"https:\/\/pureinfotech.com\/?p=165109"},"modified":"2024-02-29T13:06:36","modified_gmt":"2024-02-29T18:06:36","slug":"setup-runonce-run-registry-keys-scripts-apps-logon","status":"publish","type":"post","link":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/","title":{"rendered":"Set up RunOnce and Run Registry keys for scripts and apps at logon"},"content":{"rendered":"<ul class=\"sum\">\n<li>To configure the &#8220;RunOnce&#8221; key, open the <strong>&#8220;HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce&#8221;<\/strong> Registry path and create a String Value with the command to run.<\/li>\n<li>To configure the &#8220;Run&#8221; key, open the <strong>&#8220;HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run&#8221;<\/strong> Registry path and create a String Value with the command to run.<\/li>\n<li>You can use <strong>&#8220;!&#8221;<\/strong> for the name of the key to ignore deletion or <strong>&#8220;*&#8221;<\/strong> to run the key in Safe Mode.<\/li>\n<\/ul>\n<p>On <a href=\"https:\/\/pureinfotech.com\/tag\/windows-11\">Windows 11<\/a> (and 10), you can use the <strong>&#8220;Run&#8221;<\/strong> and <strong>&#8220;RunOnce&#8221;<\/strong> Registry keys to run apps and scripts during startup as the user logs in to the account. Of course, you can always use run programs at logon with the &#8220;Startup&#8221; folder, but the Registry is another approach you have at your disposal.<\/p>\n<p>The <strong>&#8220;Run&#8221;<\/strong> key allows you to execute a program whenever the user logs in to their Windows account. On the other hand, the <strong>&#8220;RunOnce&#8221;<\/strong> key runs a program only once, and then the system removes the key.<\/p>\n<p>Although you can use the &#8220;Run&#8221; key every time the user logs in, the &#8220;RunOnce&#8221; key should only be used for those &#8220;one-time&#8221; cases, such as to complete app setup, map a networked drive once, or change a setting, and you shouldn&#8217;t use it continuously.<\/p>\n<p>You can use these Registry keys on a per-user or per-device basis and configure multiple entries inside these keys. The only caveat is that the command cannot have more than 260 characters.<\/p>\n<p>In this <a href=\"https:\/\/pureinfotech.com\/tag\/how-to\">guide<\/a>, I will outline what you need to know to leverage the Registry to run programs at logon on Windows 11 (or even on <a href=\"https:\/\/pureinfotech.com\/tag\/windows-10\">Windows 10<\/a>).<\/p>\n<ul class=\"toc\">\n<li><a href=\"#config_runonce_key_windows\">Configure RunOnce key on Windows<\/a><\/li>\n<li><a href=\"#config_run_key_windows\">Configure Run key on Windows<\/a><\/li>\n<\/ul>\n<div id=\"tip-box\"><span><strong>Warning:<\/strong> It&#8217;s crucial to note that modifying the Registry can cause serious problems if not used properly. It&#8217;s assumed you know what you&#8217;re doing and <a href=\"https:\/\/pureinfotech.com\/backup-windows-11-external-usb-drive\/\">created a full backup<\/a> of your system before proceeding.<\/span><\/div>\n<h2 id=\"config_runonce_key_windows\">Configure RunOnce key on Windows<\/h2>\n<p>To set up the RunOnce key through the Registry, use these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Start <\/strong>on Windows 11.<\/p>\n<\/li>\n<li>\n<p>Search for <strong>regedit<\/strong> and click the top result to open the Registry.<\/p>\n<\/li>\n<li>\n<p>Open the following path to configure the &#8220;RunOnce&#8221; key for the <strong>current user<\/strong>:<\/p>\n<pre>HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce<\/pre>\n<\/li>\n<li>\n<p>Open the following path to configure the &#8220;RunOnce&#8221; key for the <strong>machine<\/strong>:<\/p>\n<pre>HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce<\/pre>\n<\/li>\n<li>\n<p>Right-click the <strong>Run<\/strong> key, choose <strong>New<\/strong>, and select the <strong>String Value<\/strong> option.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-165115\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-runonce-create-string-key.webp?resize=827%2C530&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Registry RunOnce create string\" width=\"827\" height=\"530\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-runonce-create-string-key.webp?w=875&amp;quality=78&amp;strip=all&amp;ssl=1 875w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-runonce-create-string-key.webp?resize=300%2C192&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-runonce-create-string-key.webp?resize=150%2C96&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n<li>\n<p>Confirm a name that describes the command and press <strong>Enter<\/strong>.<\/p>\n<div id=\"tip-box\"><span><strong>Quick tip:<\/strong> By default, the system will delete the keys before they even run, but you can append a <strong>&#8220;!&#8221;<\/strong> (exclamation mark), such as <strong>&#8220;!MyRunKey,&#8221;<\/strong> to delete the string after the command runs successfully. You can also append the &#8220;*&#8221; (asterisk), such as <strong>&#8220;*MyRunKey,&#8221;<\/strong> to run the command in <a href=\"https:\/\/pureinfotech.com\/start-windows-11-safe-mode\/\">Safe Mode<\/a>. Otherwise, the keys will be ignored.<\/span><\/div>\n<\/li>\n<li>\n<p>Right-click the newly created string and choose the Modify option.<\/p>\n<\/li>\n<li>\n<p>Confirm the command to the script or program to run.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-165116\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-runonce-key-configuration.webp?resize=827%2C530&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Registry RunOnce key configuration\" width=\"827\" height=\"530\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-runonce-key-configuration.webp?w=875&amp;quality=78&amp;strip=all&amp;ssl=1 875w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-runonce-key-configuration.webp?resize=300%2C192&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-runonce-key-configuration.webp?resize=150%2C96&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/p>\n<div id=\"tip-box\"><span><strong>Quick tip:<\/strong> You can also specify additional options as necessary to run the command.<\/span><\/div>\n<\/li>\n<li>\n<p>Click the <strong>OK<\/strong> button.<\/p>\n<\/li>\n<\/ol>\n<p>After you complete the steps, the system will run the command in the string one time, but only for users who are part of the &#8220;Administrators&#8221; group, meaning that this won&#8217;t work for standard users.<\/p>\n<h2 id=\"config_run_key_windows\">Configure Run key on Windows<\/h2>\n<p>To configure the &#8220;Run&#8221; key on Windows 11 (or <a href=\"https:\/\/pureinfotech.com\/tag\/windows-10\">10<\/a>), use these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Start<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Search for <strong>regedit<\/strong> and click the top result to open the Registry.<\/p>\n<\/li>\n<li>\n<p>Open the following path to configure the &#8220;Run&#8221; key for the <strong>current user<\/strong>:<\/p>\n<pre>HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run<\/pre>\n<\/li>\n<li>\n<p>Open the following path to configure the &#8220;Run&#8221; key for the <strong>machine<\/strong>:<\/p>\n<pre>HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run<\/pre>\n<\/li>\n<li>\n<p>Right-click the <strong>Run<\/strong> key, choose <strong>New<\/strong>, and select the <strong>String Value<\/strong> option.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-165113\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-create-run-string.webp?resize=827%2C530&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Registry create Run string\" width=\"827\" height=\"530\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-create-run-string.webp?w=875&amp;quality=78&amp;strip=all&amp;ssl=1 875w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-create-run-string.webp?resize=300%2C192&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-create-run-string.webp?resize=150%2C96&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n<li>\n<p>Confirm a name that describes the command and press <strong>Enter<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Right-click the newly created string and choose the <strong>Modify<\/strong> option.<\/p>\n<\/li>\n<li>\n<p>Confirm the command to the script or program to run.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-165114\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-run-key-configuration.webp?resize=827%2C530&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Registry Run key configuration\" width=\"827\" height=\"530\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-run-key-configuration.webp?w=875&amp;quality=78&amp;strip=all&amp;ssl=1 875w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-run-key-configuration.webp?resize=300%2C192&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/regedit-run-key-configuration.webp?resize=150%2C96&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/p>\n<div id=\"tip-box\"><span><strong>Quick tip:<\/strong> You can also specify additional options as necessary to run the command.<\/span><\/div>\n<\/li>\n<li>\n<p>Click the <strong>OK<\/strong> button.<\/p>\n<\/li>\n<\/ol>\n<p>Once you complete the steps, the system will run the commands in the Registry string every time the user logs in to the account.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use the Registry to run scripts and apps at every logon or once, and in this guide, I will show you how on Windows 11 and 10.<\/p>\n","protected":false},"author":2,"featured_media":165118,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[23],"tags":[97,19,2715,2576],"class_list":["post-165109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","tag-difficulty-level-advanced","tag-how-to","tag-windows-11","tag-windows-help"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Set up RunOnce and Run Registry keys for scripts and apps at logon - Pureinfotech<\/title>\n<meta name=\"description\" content=\"To run scripts and apps with the RunOnce and Run Registry keys, use the HKEYCU and HKEYLM path and then create a String Value with command.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set up RunOnce and Run Registry keys for scripts and apps at logon - Pureinfotech\" \/>\n<meta property=\"og:description\" content=\"To run scripts and apps with the RunOnce and Run Registry keys, use the HKEYCU and HKEYLM path and then create a String Value with command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/\" \/>\n<meta property=\"og:site_name\" content=\"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/pureinfotech\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-29T18:06:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-runonce-registry-hero-mauro-huculak.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1645\" \/>\n\t<meta property=\"og:image:height\" content=\"1096\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Mauro Huculak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Pureinfotech\" \/>\n<meta name=\"twitter:site\" content=\"@Pureinfotech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mauro Huculak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/\"},\"author\":{\"name\":\"Mauro Huculak\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43\"},\"headline\":\"Set up RunOnce and Run Registry keys for scripts and apps at logon\",\"datePublished\":\"2024-02-29T18:06:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/\"},\"wordCount\":682,\"publisher\":{\"@id\":\"https:\/\/pureinfotech.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-runonce-registry-hero-mauro-huculak.webp?fit=1645%2C1096&quality=78&strip=all&ssl=1\",\"keywords\":[\"Difficulty level: Advanced\",\"How-To\",\"Windows 11\",\"Windows Help\"],\"articleSection\":[\"Windows\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/\",\"url\":\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/\",\"name\":\"Set up RunOnce and Run Registry keys for scripts and apps at logon - Pureinfotech\",\"isPartOf\":{\"@id\":\"https:\/\/pureinfotech.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-runonce-registry-hero-mauro-huculak.webp?fit=1645%2C1096&quality=78&strip=all&ssl=1\",\"datePublished\":\"2024-02-29T18:06:36+00:00\",\"description\":\"To run scripts and apps with the RunOnce and Run Registry keys, use the HKEYCU and HKEYLM path and then create a String Value with command.\",\"breadcrumb\":{\"@id\":\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-runonce-registry-hero-mauro-huculak.webp?fit=1645%2C1096&quality=78&strip=all&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-runonce-registry-hero-mauro-huculak.webp?fit=1645%2C1096&quality=78&strip=all&ssl=1\",\"width\":1645,\"height\":1096,\"caption\":\"Windows 11 RunOnce Registry key \/ Image: Mauro Huculak\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/pureinfotech.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set up RunOnce and Run Registry keys for scripts and apps at logon\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pureinfotech.com\/#website\",\"url\":\"https:\/\/pureinfotech.com\/\",\"name\":\"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans\",\"description\":\"Pureinfotech is the best site to get Windows help \u2013 featuring friendly how-to guides on Windows 10, Windows 11, Xbox, and other things tech, news, deals, reviews, and more.\",\"publisher\":{\"@id\":\"https:\/\/pureinfotech.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pureinfotech.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/pureinfotech.com\/#organization\",\"name\":\"Pureinfotech\",\"url\":\"https:\/\/pureinfotech.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1\",\"width\":192,\"height\":192,\"caption\":\"Pureinfotech\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/pureinfotech\",\"https:\/\/x.com\/Pureinfotech\",\"https:\/\/www.youtube.com\/user\/Pureinfotech\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43\",\"name\":\"Mauro Huculak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"caption\":\"Mauro Huculak\"},\"description\":\"Mauro Huculak is a Windows How-To Expert and founder of Pureinfotech (est. 2010). With over 21 years as a technology writer and IT Specialist, Mauro specializes in Windows, software, and cross-platform systems such as Linux, Android, and macOS. Certifications he holds include Microsoft Certified Solutions Associate (MCSA), Cisco Certified Network Professional (CCNP), VMware Certified Professional (VCP), and CompTIA A+ and Network+. Mauro is a recognized Microsoft MVP and has also been a long-time contributor to Windows Central. You can follow him on YouTube, Threads, BlueSky, X (Twitter), LinkedIn and About.me. Email him at Contact@Pureinfotech.com.\",\"sameAs\":[\"https:\/\/pureinfotech.com\",\"https:\/\/x.com\/@Pureinfotech\"],\"url\":\"https:\/\/pureinfotech.com\/mauro-huculak\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set up RunOnce and Run Registry keys for scripts and apps at logon - Pureinfotech","description":"To run scripts and apps with the RunOnce and Run Registry keys, use the HKEYCU and HKEYLM path and then create a String Value with command.","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:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/","og_locale":"en_US","og_type":"article","og_title":"Set up RunOnce and Run Registry keys for scripts and apps at logon - Pureinfotech","og_description":"To run scripts and apps with the RunOnce and Run Registry keys, use the HKEYCU and HKEYLM path and then create a String Value with command.","og_url":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/","og_site_name":"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans","article_publisher":"https:\/\/facebook.com\/pureinfotech","article_published_time":"2024-02-29T18:06:36+00:00","og_image":[{"width":1645,"height":1096,"url":"https:\/\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-runonce-registry-hero-mauro-huculak.webp","type":"image\/webp"}],"author":"Mauro Huculak","twitter_card":"summary_large_image","twitter_creator":"@Pureinfotech","twitter_site":"@Pureinfotech","twitter_misc":{"Written by":"Mauro Huculak","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#article","isPartOf":{"@id":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/"},"author":{"name":"Mauro Huculak","@id":"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43"},"headline":"Set up RunOnce and Run Registry keys for scripts and apps at logon","datePublished":"2024-02-29T18:06:36+00:00","mainEntityOfPage":{"@id":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/"},"wordCount":682,"publisher":{"@id":"https:\/\/pureinfotech.com\/#organization"},"image":{"@id":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-runonce-registry-hero-mauro-huculak.webp?fit=1645%2C1096&quality=78&strip=all&ssl=1","keywords":["Difficulty level: Advanced","How-To","Windows 11","Windows Help"],"articleSection":["Windows"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/","url":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/","name":"Set up RunOnce and Run Registry keys for scripts and apps at logon - Pureinfotech","isPartOf":{"@id":"https:\/\/pureinfotech.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#primaryimage"},"image":{"@id":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-runonce-registry-hero-mauro-huculak.webp?fit=1645%2C1096&quality=78&strip=all&ssl=1","datePublished":"2024-02-29T18:06:36+00:00","description":"To run scripts and apps with the RunOnce and Run Registry keys, use the HKEYCU and HKEYLM path and then create a String Value with command.","breadcrumb":{"@id":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#primaryimage","url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-runonce-registry-hero-mauro-huculak.webp?fit=1645%2C1096&quality=78&strip=all&ssl=1","contentUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-runonce-registry-hero-mauro-huculak.webp?fit=1645%2C1096&quality=78&strip=all&ssl=1","width":1645,"height":1096,"caption":"Windows 11 RunOnce Registry key \/ Image: Mauro Huculak"},{"@type":"BreadcrumbList","@id":"https:\/\/pureinfotech.com\/setup-runonce-run-registry-keys-scripts-apps-logon\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pureinfotech.com\/"},{"@type":"ListItem","position":2,"name":"Set up RunOnce and Run Registry keys for scripts and apps at logon"}]},{"@type":"WebSite","@id":"https:\/\/pureinfotech.com\/#website","url":"https:\/\/pureinfotech.com\/","name":"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans","description":"Pureinfotech is the best site to get Windows help \u2013 featuring friendly how-to guides on Windows 10, Windows 11, Xbox, and other things tech, news, deals, reviews, and more.","publisher":{"@id":"https:\/\/pureinfotech.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pureinfotech.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pureinfotech.com\/#organization","name":"Pureinfotech","url":"https:\/\/pureinfotech.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1","contentUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1","width":192,"height":192,"caption":"Pureinfotech"},"image":{"@id":"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/pureinfotech","https:\/\/x.com\/Pureinfotech","https:\/\/www.youtube.com\/user\/Pureinfotech"]},{"@type":"Person","@id":"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43","name":"Mauro Huculak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","caption":"Mauro Huculak"},"description":"Mauro Huculak is a Windows How-To Expert and founder of Pureinfotech (est. 2010). With over 21 years as a technology writer and IT Specialist, Mauro specializes in Windows, software, and cross-platform systems such as Linux, Android, and macOS. Certifications he holds include Microsoft Certified Solutions Associate (MCSA), Cisco Certified Network Professional (CCNP), VMware Certified Professional (VCP), and CompTIA A+ and Network+. Mauro is a recognized Microsoft MVP and has also been a long-time contributor to Windows Central. You can follow him on YouTube, Threads, BlueSky, X (Twitter), LinkedIn and About.me. Email him at Contact@Pureinfotech.com.","sameAs":["https:\/\/pureinfotech.com","https:\/\/x.com\/@Pureinfotech"],"url":"https:\/\/pureinfotech.com\/mauro-huculak"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-runonce-registry-hero-mauro-huculak.webp?fit=1645%2C1096&quality=78&strip=all&ssl=1","jetpack-related-posts":[{"id":113660,"url":"https:\/\/pureinfotech.com\/enable-automatic-registry-backup-windows-10\/","url_meta":{"origin":165109,"position":0},"title":"How to enable automatic Registry backup on Windows 11, 10","author":"Mauro Huculak","date":"December 10, 2024","format":false,"excerpt":"You can now enable automatic Registry backups on your computer, and here's how.","rel":"","context":"","block_context":{"text":"Features","link":"https:\/\/pureinfotech.com\/category\/features\/"},"img":{"alt_text":"Windows 11 automatic Registry backup","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/01\/windows-11-auto-regedit-backup-hero-mauro-huculak.webp?fit=1200%2C797&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/01\/windows-11-auto-regedit-backup-hero-mauro-huculak.webp?fit=1200%2C797&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/01\/windows-11-auto-regedit-backup-hero-mauro-huculak.webp?fit=1200%2C797&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/01\/windows-11-auto-regedit-backup-hero-mauro-huculak.webp?fit=1200%2C797&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/01\/windows-11-auto-regedit-backup-hero-mauro-huculak.webp?fit=1200%2C797&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":136442,"url":"https:\/\/pureinfotech.com\/bring-back-classic-context-menu-windows-11\/","url_meta":{"origin":165109,"position":1},"title":"How to bring back classic context menu on Windows 11","author":"Mauro Huculak","date":"February 7, 2024","format":false,"excerpt":"If the new right-click context menu on Windows 11 isn't for you, it's possible to replace it with the legacy context menu, and here's how.","rel":"","context":"","block_context":{"text":"Features","link":"https:\/\/pureinfotech.com\/category\/features\/"},"img":{"alt_text":"Windows 11 classic context menu","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/06\/windows-11-classic-context-menu-hero-mauro-huculak.webp?fit=1200%2C804&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/06\/windows-11-classic-context-menu-hero-mauro-huculak.webp?fit=1200%2C804&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/06\/windows-11-classic-context-menu-hero-mauro-huculak.webp?fit=1200%2C804&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/06\/windows-11-classic-context-menu-hero-mauro-huculak.webp?fit=1200%2C804&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/06\/windows-11-classic-context-menu-hero-mauro-huculak.webp?fit=1200%2C804&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":180718,"url":"https:\/\/pureinfotech.com\/windows-11-policy-remove-bloatware\/","url_meta":{"origin":165109,"position":2},"title":"How to use Windows 11\u2019s built-in policy to remove bloatware","author":"Mauro Huculak","date":"September 10, 2025","format":false,"excerpt":"Microsoft finally lets you debloat Windows 11 with a native option available through the Group Policy Editor.","rel":"","context":"","block_context":{"text":"Features","link":"https:\/\/pureinfotech.com\/category\/features\/"},"img":{"alt_text":"Windows 11 debloat policy","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/09\/widnows-11-debloat-policy-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/09\/widnows-11-debloat-policy-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/09\/widnows-11-debloat-policy-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/09\/widnows-11-debloat-policy-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/09\/widnows-11-debloat-policy-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":148144,"url":"https:\/\/pureinfotech.com\/disable-startup-apps-windows-11\/","url_meta":{"origin":165109,"position":3},"title":"How to disable startup programs on Windows 11","author":"Mauro Huculak","date":"March 20, 2026","format":false,"excerpt":"Are you tired of apps slowing down the startup process of Windows 11? Here are four effective ways to prevent apps from running automatically on startup.","rel":"","context":"","block_context":{"text":"Windows","link":"https:\/\/pureinfotech.com\/category\/windows\/"},"img":{"alt_text":"Windows 11 disable startup programs","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/05\/windows-11-startup-apps-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/05\/windows-11-startup-apps-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/05\/windows-11-startup-apps-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/05\/windows-11-startup-apps-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/05\/windows-11-startup-apps-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":179227,"url":"https:\/\/pureinfotech.com\/disable-drag-tray-windows-11\/","url_meta":{"origin":165109,"position":4},"title":"How to disable Drag Tray sharing UI feature on Windows 11","author":"Mauro Huculak","date":"December 1, 2025","format":false,"excerpt":"If you don't like the Drag Tray UI on Windows 11, you can use these steps to disable it.","rel":"","context":"","block_context":{"text":"Features","link":"https:\/\/pureinfotech.com\/category\/features\/"},"img":{"alt_text":"Windows 11 disable Drag Tray","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/07\/windows-11-disable-drag-tray-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/07\/windows-11-disable-drag-tray-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/07\/windows-11-disable-drag-tray-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/07\/windows-11-disable-drag-tray-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/07\/windows-11-disable-drag-tray-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":165204,"url":"https:\/\/pureinfotech.com\/speed-up-folder-browsing-file-explorer-windows-11\/","url_meta":{"origin":165109,"position":5},"title":"How to speed up large folder browsing on File Explorer for Windows 11","author":"Mauro Huculak","date":"March 5, 2024","format":false,"excerpt":"This simple Registry change can significantly make File Explorer faster when browsing folders with a lot of files.","rel":"","context":"","block_context":{"text":"Features","link":"https:\/\/pureinfotech.com\/category\/features\/"},"img":{"alt_text":"File Explorer Registry trick","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/03\/windows-11-speedup-explorer-registry-hero-mauro-huculak.webp?fit=1200%2C800&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/03\/windows-11-speedup-explorer-registry-hero-mauro-huculak.webp?fit=1200%2C800&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/03\/windows-11-speedup-explorer-registry-hero-mauro-huculak.webp?fit=1200%2C800&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/03\/windows-11-speedup-explorer-registry-hero-mauro-huculak.webp?fit=1200%2C800&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/03\/windows-11-speedup-explorer-registry-hero-mauro-huculak.webp?fit=1200%2C800&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts\/165109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/comments?post=165109"}],"version-history":[{"count":0,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts\/165109\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/media\/165118"}],"wp:attachment":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/media?parent=165109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/categories?post=165109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/tags?post=165109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}