{"id":3736,"date":"2016-08-22T17:00:39","date_gmt":"2016-08-22T15:00:39","guid":{"rendered":"http:\/\/www.razumny.no\/?p=3736"},"modified":"2016-08-09T10:17:10","modified_gmt":"2016-08-09T08:17:10","slug":"resolving-error-1312-when-mapping-a-folder-on-a-network-share","status":"publish","type":"post","link":"https:\/\/www.razumny.no\/?p=3736","title":{"rendered":"Resolving Error 1312 when mapping a folder on a network share"},"content":{"rendered":"<p>Some time ago, I was talking to a user on the phone, while\u00a0remotely controlling their computer. I needed to connect to a folder on a network share\u00a0as my admin account, rather than that of the logged-in user, but kept running into the following error:<\/p>\n<p style=\"text-align: center;\"><code>Error 1312: A specified logon session does not exist.<\/code><\/p>\n<p>It did not matter whether I was using the wizard to map to the share, or the command line; I kept getting the error message.\u00a0After\u00a0trying a number of combinations, I found a workaround. By first attempting to map the folder in which the\u00a0folder was located (at which point I got the error message), I was next able to map the desired folder. I would also note that I was only able to make this work from the command line.<\/p>\n<p>The commands look like this:<\/p>\n<p><code>net use\u00a0\\\\domain\\folder \/user:domain\\domainadmin<\/code><\/p>\n<p><code>net use\u00a0\\\\domain\\folder\\actual folder \/user:domain\\domainadmin<\/code><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some time ago, I was talking to a user on the phone, while\u00a0remotely controlling their computer. I needed to connect to a folder on a network share\u00a0as my admin account, rather than that of the logged-in user, but kept running into the following error: Error 1312: A specified logon session does not exist. It did [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","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_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_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":[615,677],"tags":[1030,862],"class_list":["post-3736","post","type-post","status-publish","format-standard","hentry","category-how-to-2","category-tips-tricks","tag-error-1312","tag-net-use"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p2ukSU-Yg","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2672,"url":"https:\/\/www.razumny.no\/?p=2672","url_meta":{"origin":3736,"position":0},"title":"Disconnect non-mapped drive","author":"Aleksander Nordgarden-R\u00f8dner","date":"12\/01\/2015","format":false,"excerpt":"From time to time, I have been\u00a0unable to connect to the UNC path of a network share. The error message I\u00a0get is: This usually happens when I am remotely connected to another user's computer. The message is straight-forward enough;\u00a0so, too, is the solution. You\u00a0simply need to disconnect from the share.\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"The network folder specified is currently mapped using a different user name and password","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/error.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":5620,"url":"https:\/\/www.razumny.no\/?p=5620","url_meta":{"origin":3736,"position":1},"title":"Mapping a local folder to a Windows drive letter","author":"Aleksander Nordgarden-R\u00f8dner","date":"21\/09\/2020","format":false,"excerpt":"A little while ago, I needed to simulate the File Explorer presentation of a network share in order to illustrate a point to a very non-technical customer of mine. Luckily, this is very easily accomplished through the use of either the subst or net use command line commands. The difference\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6996,"url":"https:\/\/www.razumny.no\/?p=6996","url_meta":{"origin":3736,"position":2},"title":"PowerShell: &#8220;Some or all identity references could not be translated&#8221;","author":"Aleksander Nordgarden-R\u00f8dner","date":"05\/12\/2022","format":false,"excerpt":"For a whole host of reasons we use scripts to create access controlled file shares, and to create the Active Directory groups that control access to them. Not only is it easier than doing it manually, it also ensures that the group is created in the correct place, that permissions\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/www.razumny.no\/?cat=820"},"img":{"alt_text":"Picture of text:\n\nRetry-Command: Some or all identity references could not be translated.\nAt C:\\Scripts\\Opprette-Styrtomr\u00e5de.ps1:113 char:1\n+ Retry-Command -ScriptBlock {\n+\n+ CategoryInfo\n+ FullyQualified Error Id: Microsoft.\n: NotSpecified: (:) [Write-Error], WriteError Exception\nPowerShell.Commands.WriteError Exception, Retry-Command","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-107.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-107.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-107.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2197,"url":"https:\/\/www.razumny.no\/?p=2197","url_meta":{"origin":3736,"position":3},"title":"Exporting members of an Active Directory group","author":"Aleksander Nordgarden-R\u00f8dner","date":"21\/10\/2013","format":false,"excerpt":"A while back, my boss came to me, asking me if I could get him an export of the users that are members of two groups in Active Directory. For the purposes of this blog post, let's call them \"OfflineUsers\" and \"Software Access\". As it turns out, this is pretty\u2026","rel":"","context":"In &quot;code examples&quot;","block_context":{"text":"code examples","link":"https:\/\/www.razumny.no\/?cat=119"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3911,"url":"https:\/\/www.razumny.no\/?p=3911","url_meta":{"origin":3736,"position":4},"title":"Newly created folder does not show in Outlook","author":"Aleksander Nordgarden-R\u00f8dner","date":"30\/01\/2017","format":false,"excerpt":"A user called in, complaining that they were unable to create a new folder in a shared mailbox. The error message they got indicated that the folder already existed. I started troubleshooting the issue, and it transpired that they had created the folder already, though it did not show up.\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/Cache-settings.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4687,"url":"https:\/\/www.razumny.no\/?p=4687","url_meta":{"origin":3736,"position":5},"title":"Batch replace file extension of all files in a folder","author":"Aleksander Nordgarden-R\u00f8dner","date":"30\/07\/2018","format":false,"excerpt":"From time to time, I need to quickly change the file extension of all files in a folder. While there are tools that can do that for you (one of which I've written about previously), if you need to append the same file extension to all files in a folder,\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/rename.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/3736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3736"}],"version-history":[{"count":3,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/3736\/revisions"}],"predecessor-version":[{"id":3742,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/3736\/revisions\/3742"}],"wp:attachment":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}