{"id":147,"date":"2016-08-02T20:11:34","date_gmt":"2016-08-02T20:11:34","guid":{"rendered":"http:\/\/www.web-workers.ch\/?p=147"},"modified":"2017-03-02T20:18:20","modified_gmt":"2017-03-02T20:18:20","slug":"how-to-fix-windows-78-110-login-script-issues-in-activedirectory-environments","status":"publish","type":"post","link":"https:\/\/www.web-workers.ch\/index.php\/2016\/08\/02\/how-to-fix-windows-78-110-login-script-issues-in-activedirectory-environments\/","title":{"rendered":"How to fix Windows 7\/8.1\/10 login script issues in ActiveDirectory environments"},"content":{"rendered":"<h1 class=\"page-title col-xl-20 col-md-18 ng-binding ng-scope\">Logon scripts do not run for five minutes after a user logs on to a Windows 8.1\/10-based computer<\/h1>\n<p>After a user logs on to a Windows 8.1\/10-based computer, the logon scripts do not run for five minutes. This behavior causes\u00a0the following symptoms to occur:<\/p>\n<ul>\n<li>Operations that are performed by the logon scripts may not\u00a0be visible\u00a0on Windows 8.1\/10-based computers until\u00a0five minutes after the user logs on.<\/li>\n<li>Resources that are\u00a0made available by the logon scripts may not be available to users on Windows 8.1-based computers until about five\u00a0minutes after users log on.<\/li>\n<\/ul>\n<p>This behavior occurs because Windows 8.1 includes a\u00a0new Group Policy setting,\u00a0&#8220;Configure Logon Script Delay,&#8221;\u00a0that controls the behavior of logon scripts. This script is stored in the following location:<\/p>\n<blockquote dir=\"ltr\"><p>Computer Configuration\\Administrative Templates\\System\\Group Policy<\/p><\/blockquote>\n<p>The default value setting for the &#8220;Configure Logon Script Delay&#8221; (DE: Anmeldeskriptverz\u00f6gerung) policy is\u00a0<strong>Not Configured<\/strong>.\u00a0However, the default behavior of\u00a0a Group Policy client is to wait five minutes before it runs logon scripts. The goal of the\u00a0five-minute delay is to speed up the loading of the user&#8217;s desktop on Windows 8.1-based computers.<\/p>\n<p>If you want the logon scripts to run at user logon without any delay, you should configure the setting to <strong>Disabled<\/strong>:<\/p>\n<blockquote dir=\"ltr\"><p>Computer Configuration\\Administrative Templates\\System\\Group Policy: Configure Logon Script Delay ==&gt; Disabled<\/p><\/blockquote>\n<p>If you want to change the time that the Group Policy client waits until it runs the logon scripts, you can set the\u00a0time in minutes:<\/p>\n<blockquote dir=\"ltr\"><p>Computer Configuration\\Administrative Templates\\System\\Group Policy: Configure Logon Script Delay ==&gt; Enabled<\/p><\/blockquote>\n<p dir=\"ltr\">Then, in the options section, set\u00a0<strong>minute<\/strong> to the desired value. The maximum value that you can enter is 1,000 minutes.<\/p>\n<p>After you set the policy to <strong>Enabled<\/strong> and set the time in minutes, the Group Policy client waits for the specified time before it runs logon scripts at user logon. If you enter the time in minutes as zero (0), the setting is disabled, and the Group Policy client runs the logon scripts at user logon without any delay.<\/p>\n<h1 class=\"page-title col-xl-20 col-md-18 ng-binding ng-scope\">When booting I am getting the message: &#8220;Could not reconnect all\u00a0network drives&#8221;<\/h1>\n<p>Its seems the computer wants to connect before the network is up. It is not a credential issue, but boot order. Is there anyway to make the network come up before the computer wants to map to it. Multiple possible solutions exist out there:<\/p>\n<h4>Disconnect network drive before log off\/reboot<\/h4>\n<p>Disconnect your network drives before you log off\/reboot to avoid the error message appearing.<\/p>\n<p><span style=\"color: #2a2a2a;\"><code>net use Y: \\\\storage\\share\/persistent:no<br \/>\nnet use Z: \\\\storage\\share \/USER:username [password] \/persistent:no<\/code><\/span><\/p>\n<h4>Delay your loginscript<\/h4>\n<p>You can tell your system to run a simple batch file with a delay of 10 seconds or more (depending on your system boot times) on logon using the scheduler or other techniques. A sample vb-script with a 10 seconds delay:<\/p>\n<p><code>' Map network drive script - 10000 = 10 seconds<br \/>\nWScript.Sleep(10000)<br \/>\nSet objNetwork = CreateObject(\"WScript.Network\")<br \/>\nobjNetwork.MapNetworkDrive \"F:\" , \"\\\\server\\files\"<br \/>\nobjNetwork.MapNetworkDrive \"M:\" , \"\\\\server\\music\"<br \/>\nobjNetwork.MapNetworkDrive \"P:\" , \"\\\\server\\Pictures\"<br \/>\nobjNetwork.MapNetworkDrive \"S:\" , \"\\\\server\\disks\"<br \/>\nobjNetwork.MapNetworkDrive \"V:\" , \"\\\\server\\videos\"<\/code><\/p>\n<h4>EnableLinkedConnections in Registry<\/h4>\n<p><span style=\"color: #2a2a2a;\">To configure the EnableLinkedConnections registry value, follow these steps:<\/span><\/p>\n<ol class=\"decimal\">\n<li>Locate and then right-click the following registry subkey:<b>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System<\/b><\/li>\n<li>Point to <b>New<\/b> , and then click <b>DWORD Value<\/b> .<\/li>\n<li>Type EnableLinkedConnections , and then press ENTER.<\/li>\n<li>Right-click <b>EnableLinkedConnections<\/b> , and then click <b>Modify<\/b> .<\/li>\n<li>In the <b>Value data<\/b> box, type 1 , and then click <b>OK<\/b> .<\/li>\n<li>Exit Registry Editor, and then restart the computer.&#8221;<\/li>\n<\/ol>\n<p>Download REG File:\u00a0<a href=\"http:\/\/www.web-workers.ch\/index.php\/2017\/03\/02\/how-to-fix-windows-78-110-login-script-issues-in-activedirectory-environment\/enablelinkedconnections\/\" rel=\"attachment wp-att-149\">EnableLinkedConnections<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Logon scripts do not run for five minutes after a user logs on to a Windows 8.1\/10-based computer After a user logs on to a Windows 8.1\/10-based computer, the logon [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":153,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[63,46,43,75,76,59,52,9,41,48,29,28],"class_list":["post-147","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mswin","tag-ad","tag-file","tag-http","tag-ie","tag-link","tag-lock","tag-log","tag-microsoft","tag-php","tag-script","tag-server","tag-windows"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/1418881.jpg?fit=660%2C448&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8sxjX-2n","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":5,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":154,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/147\/revisions\/154"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/media\/153"}],"wp:attachment":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}