{"id":1410,"date":"2016-05-17T18:43:57","date_gmt":"2016-05-17T16:43:57","guid":{"rendered":"http:\/\/vady.kiev.ua\/tweets\/?p=1410"},"modified":"2016-05-17T18:44:16","modified_gmt":"2016-05-17T16:44:16","slug":"windows-10-does-not-reconnect-to-mapped-network-drives","status":"publish","type":"post","link":"https:\/\/vady.kiev.ua\/tweets\/1410","title":{"rendered":"Windows 10 does not reconnect to mapped network drives"},"content":{"rendered":"<p><a href=\"http:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_10-other_settings\/how-do-i-reconnect-all-network-drives-in-windows\/0766cf3d-6b2e-45bf-8cf0-14646e0594bf\" target=\"_blank\">Netlogon service<\/a> doesn&#8217;t affect.<\/p>\n<p><strong style=\"text-decoration: underline;\">Solution:<\/strong><br \/>\n<script src=\"https:\/\/gist.github.com\/anderssonjohan\/8d3f958f29b4ae5c7802.js\"><\/script><\/p>\n<p>as Startup script:<\/p>\n<p><code>C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -WindowStyle Hidden -NonInteractive -NoLogo -File C:\\Users\\Vady\\Documents\\ReconnectNetworkDrivesAtStartup.ps1<\/code><\/p>\n<p>Oneliner to Create Task via PowerShell 3.0+ (Grant Elevated Privileges):<\/p>\n<p><code>$PS1file = '{0}\\ReconnectNetworkDrivesAtStartup.ps1' -f [Environment]::GetFolderPath(\"MyDocuments\");Invoke-WebRequest -Uri 'https:\/\/gist.github.com\/anderssonjohan\/8d3f958f29b4ae5c7802\/raw' -OutFile $PS1file;Register-ScheduledTask -TaskName 'ReconnectNetworkDrivesAtStartup' -Description 'http:\/\/stackoverflow.com\/a\/29373760' -Trigger (New-ScheduledTaskTrigger -AtLogOn -User \"$env:USERDOMAIN\\$env:USERNAME\") -Action (New-ScheduledTaskAction -Execute \"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -Argument \"-WindowStyle Hidden -NonInteractive -NoLogo -File $PS1file\")<\/code><\/p>\n<p>PS. For Win7\/8 via app: <a href=\"http:\/\/winaero.com\/blog\/fix-windows-does-not-reconnect-to-mapped-network-drives\/\">MapDrive.exe<\/a> (.NET Framework 2.0)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Netlogon service doesn&#8217;t affect. Solution: as Startup script: C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -WindowStyle Hidden -NonInteractive -NoLogo -File C:\\Users\\Vady\\Documents\\ReconnectNetworkDrivesAtStartup.ps1 Oneliner to Create Task via PowerShell 3.0+ (Grant Elevated Privileges): $PS1file = &#8216;{0}\\ReconnectNetworkDrivesAtStartup.ps1&#8217; -f [Environment]::GetFolderPath(&#8220;MyDocuments&#8221;);Invoke-WebRequest -Uri &#8216;https:\/\/gist.github.com\/anderssonjohan\/8d3f958f29b4ae5c7802\/raw&#8217; -OutFile $PS1file;Register-ScheduledTask -TaskName &#8216;ReconnectNetworkDrivesAtStartup&#8217; -Description &#8216;http:\/\/stackoverflow.com\/a\/29373760&#8217; -Trigger (New-ScheduledTaskTrigger -AtLogOn -User &#8220;$env:USERDOMAIN\\$env:USERNAME&#8221;) -Action (New-ScheduledTaskAction -Execute &#8220;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe&#8221; -Argument &#8220;-WindowStyle Hidden -NonInteractive -NoLogo -File $PS1file&#8221;) PS. &hellip; <a href=\"https:\/\/vady.kiev.ua\/tweets\/1410\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Windows 10 does not reconnect to mapped network drives<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[134,95,354,402,55],"class_list":["post-1410","post","type-post","status-publish","format-standard","hentry","category-misc","tag-powershell","tag-script","tag-tasks","tag-w10","tag-windows"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7bIIX-mK","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts\/1410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/comments?post=1410"}],"version-history":[{"count":2,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts\/1410\/revisions"}],"predecessor-version":[{"id":1412,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts\/1410\/revisions\/1412"}],"wp:attachment":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/media?parent=1410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/categories?post=1410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/tags?post=1410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}