{"id":415,"date":"2025-01-20T16:51:33","date_gmt":"2025-01-20T15:51:33","guid":{"rendered":"https:\/\/digitalmaterial.ch\/blog\/?p=415"},"modified":"2025-01-20T16:51:35","modified_gmt":"2025-01-20T15:51:35","slug":"intune-adventures-the-curious-case-of-the-disappearing-network-drives","status":"publish","type":"post","link":"https:\/\/digitalmaterial.ch\/blog\/intune-adventures-the-curious-case-of-the-disappearing-network-drives\/","title":{"rendered":"Intune Adventures: The Curious Case of the Disappearing Network Drives"},"content":{"rendered":"\n<p>Recently, we experienced some issues with a Customer after removing a Network Drive from the Computers that had been mapped via Intune. And it was surely not the kind of issue we would have expected.<\/p>\n\n\n\n<p>But let&#8217;s begin from the start. We have been managing the Network Drives for that customer via Intune for quite a while, as described in this Blog from Call 4 Cloud: <a href=\"https:\/\/call4cloud.nl\/intune-drive-mappings-admx-drive-letters\/\">Intune Drive Mappings | Managing Drive letters with an ADMX<\/a>. We do have one Server and Azure Files being used as file shares with multiple network drives ranging from G: to Y: As we have been moving the data from drive L: to SharePoint, we wanted to disable that drive on all clients. So we unassigned to Policy from the Clients, and after a short while some users complained that they were missing multiple Network Drives. Not what we expected after just removing one drive. And when looking at the Computers we were greeted by the following view (remember that we had drives ranging from G: to Y: and we removed drive L:)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"191\" height=\"234\" src=\"https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Networkdrives-Missing.png\" alt=\"\" class=\"wp-image-451\"\/><\/figure>\n\n\n\n<p>The command <code>net use<\/code> also showed just a part of the expected drives:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">PowerShell<\/span><span role=\"button\" tabindex=\"0\" data-code=\"&gt; net use\nStatus       Local     Remote\n-------------------------------------------------------------------------------\nOK           G:        \\\\serverA.intra.domain.ch\\FileShareG\nOK           H:        \\\\serverA.intra.domain.ch\\FileShareH\nOK           I:        \\\\serverA.intra.domain.ch\\FileShareI\nOK           J:        \\\\serverA.intra.domain.ch\\FileShareJ\nOK           K:        \\\\serverA.intra.domain.ch\\FileShareK\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&gt; net use<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">Status       Local     Remote<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">-------------------------------------------------------------------------------<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           G:        \\\\serverA.intra.domain.ch\\FileShareG<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           H:        \\\\serverA.intra.domain.ch\\FileShareH<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           I:        \\\\serverA.intra.domain.ch\\FileShareI<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           J:        \\\\serverA.intra.domain.ch\\FileShareJ<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           K:        \\\\serverA.intra.domain.ch\\FileShareK<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>So on first sight, we thought that only the drives from the Server were mapped, and Azure Files were missing. But we had Maps to the Server on Drive Letters like Y: as well. So after a short while, it was clear that all drives were missing that follow after the Letter L in the Alphabet. And that was the first sign of a bug either in Intune or Windows (or both, of course).<\/p>\n\n\n\n<p>So we dug deep into the Intune policies, CSP, and our beloved registry. After a long search (and possibly some cursing) we stumbled upon the Registry Key <code>HKLM:\\Software\\Microsoft\\Policymanager\\Current\\{SID}<\/code>. All the mapped drives were showing, and for drive L: there was just one Registry Item instead of the four for all the others. So we removed the remains of that network drive in the registry and tried again, but with no luck.<\/p>\n\n\n\n<p>So we went on with digging, searching, (and cursing) and after a while, found another leftover of our &#171;Deleted&#187; Drive in <code>HKCU:\\Network<\/code>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"515\" src=\"https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Registry-Unassigned.png\" alt=\"\" class=\"wp-image-431\" srcset=\"https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Registry-Unassigned.png 999w, https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Registry-Unassigned-300x155.png 300w, https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Registry-Unassigned-768x396.png 768w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><\/figure>\n\n\n\n<p>So we deleted the Key and voil\u00e0, net use showed us all the drives instantly:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">PowerShell<\/span><span role=\"button\" tabindex=\"0\" data-code=\"&gt; net use\nStatus       Local     Remote\n-------------------------------------------------------------------------------\nOK           G:        \\\\serverA.intra.domain.ch\\FileShareG\nOK           H:        \\\\serverA.intra.domain.ch\\FileShareH\nOK           I:        \\\\serverA.intra.domain.ch\\FileShareI\nOK           J:        \\\\serverA.intra.domain.ch\\FileShareJ\nOK           K:        \\\\serverA.intra.domain.ch\\FileShareK\nOK           M:        \\\\stdata.file.core.windows.net\\FileShareM\nOK           N:        \\\\stdata.file.core.windows.net\\FileShareN\nOK           O:        \\\\stdata.file.core.windows.net\\FileShareO\nOK           P:        \\\\stdata.file.core.windows.net\\FileShareP\nOK           Q:        \\\\serverA.intra.domain.ch\\FileShareQ\nOK           R:        \\\\serverA.intra.domain.ch\\FileShareR\nOK           T:        \\\\serverA.intra.domain.ch\\FileShareT\nOK           X:        \\\\serverA.intra.domain.ch\\FileShareX\nOK           Y:        \\\\serverA.intra.domain.ch\\FileShareY\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&gt; net use<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">Status       Local     Remote<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">-------------------------------------------------------------------------------<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           G:        \\\\serverA.intra.domain.ch\\FileShareG<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           H:        \\\\serverA.intra.domain.ch\\FileShareH<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           I:        \\\\serverA.intra.domain.ch\\FileShareI<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           J:        \\\\serverA.intra.domain.ch\\FileShareJ<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           K:        \\\\serverA.intra.domain.ch\\FileShareK<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           M:        \\\\stdata.file.core.windows.net\\FileShareM<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           N:        \\\\stdata.file.core.windows.net\\FileShareN<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           O:        \\\\stdata.file.core.windows.net\\FileShareO<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           P:        \\\\stdata.file.core.windows.net\\FileShareP<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           Q:        \\\\serverA.intra.domain.ch\\FileShareQ<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           R:        \\\\serverA.intra.domain.ch\\FileShareR<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           T:        \\\\serverA.intra.domain.ch\\FileShareT<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           X:        \\\\serverA.intra.domain.ch\\FileShareX<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">OK           Y:        \\\\serverA.intra.domain.ch\\FileShareY<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Explorer needed a restart to be happy and show the drives:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"201\" height=\"516\" src=\"https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Networkdrives-Full.png\" alt=\"\" class=\"wp-image-452\" srcset=\"https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Networkdrives-Full.png 201w, https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Networkdrives-Full-117x300.png 117w\" sizes=\"auto, (max-width: 201px) 100vw, 201px\" \/><\/figure>\n\n\n\n<p>As we had the issue on multiple devices, we pushed a script via Intune with the following command, and after a reboot all the users had their drives back.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">PowerShell<\/span><span role=\"button\" tabindex=\"0\" data-code=\"Remove-Item -Path &quot;HKCU:\\Network\\L&quot; -Recurse -Force\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">Remove-Item<\/span><span style=\"color: #D4D4D4\"> -Path <\/span><span style=\"color: #CE9178\">&quot;HKCU:\\Network\\L&quot;<\/span><span style=\"color: #D4D4D4\"> -Recurse -Force<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Finally, we had a solution for this issue, but still would expect Intune and Windows to be able to remove Network Drives without such issues. So we checked what happens, if we do not just unassign the policy or set it to Not configured but delete the drive via Intune. And the result was even worse:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"404\" src=\"https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Registry-Deleted-1024x404.png\" alt=\"\" class=\"wp-image-432\" srcset=\"https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Registry-Deleted-1024x404.png 1024w, https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Registry-Deleted-300x118.png 300w, https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Registry-Deleted-768x303.png 768w, https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/Registry-Deleted.png 1361w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>So we did not find a way to remove drives just with the Intune policy, and always needed to add a script to remove the Registry Key. Funnily, net use was also able to remove the drive and the Registry Key after the Intune Policy mishap:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">BAT (Batchfile)<\/span><span role=\"button\" tabindex=\"0\" data-code=\"net use L: \/delete\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #569CD6\">net use<\/span><span style=\"color: #D4D4D4\"> L: \/delete<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>If you thought this is weird. Well it gets even weirder. For testing we created a simple policy to remove the Drive E: from a client that did not have that drive mounted.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"566\" height=\"418\" src=\"https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/image-14.png\" alt=\"\" class=\"wp-image-466\" srcset=\"https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/image-14.png 566w, https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/image-14-300x222.png 300w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/figure>\n\n\n\n<p>We would have expected that nothing happens. If you deleted a drive that does not exist there&#8217;s nothing you have to do. But no: Intune \/ Windows created a new registry Key named E with the same content we have seen above, leading to the same issues.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"252\" src=\"https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/image-13.png\" alt=\"\" class=\"wp-image-465\" srcset=\"https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/image-13.png 631w, https:\/\/digitalmaterial.ch\/blog\/wp-content\/uploads\/2025\/01\/image-13-300x120.png 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>In the end, the whole issue seems to be a combination of a bug in the Intune Policy, which did not completely remove the Registry Key in Windows. And Windows to trip over the incomplete Registry Key. We were even able to reproduce that issue by just creating a key named E and no drives were showing:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">PowerShell<\/span><span role=\"button\" tabindex=\"0\" data-code=\"New-Item -Path &quot;HKCU:\\Network\\E&quot;\n\n&gt; net use\nThere are no entries in the list.\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">New-Item<\/span><span style=\"color: #D4D4D4\"> -Path <\/span><span style=\"color: #CE9178\">&quot;HKCU:\\Network\\E&quot;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">&gt; net use<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">There are no entries <\/span><span style=\"color: #C586C0\">in<\/span><span style=\"color: #D4D4D4\"> the list.<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>If you need to remove a network drive that you have mounted via Intune and an ADMX, test thoroughly to ensure if your drive (and only that drive) will be removed.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, we experienced some issues with a Customer after removing a Network Drive from the Computers that had been mapped via Intune. And it was surely not the kind of issue we would have expected. But let&#8217;s begin from the start. We have been managing the Network Drives for that customer via Intune for quite [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":445,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[16,45],"class_list":["post-415","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-endpoint-management","tag-intune","tag-network-drives"],"_links":{"self":[{"href":"https:\/\/digitalmaterial.ch\/blog\/wp-json\/wp\/v2\/posts\/415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalmaterial.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalmaterial.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalmaterial.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalmaterial.ch\/blog\/wp-json\/wp\/v2\/comments?post=415"}],"version-history":[{"count":26,"href":"https:\/\/digitalmaterial.ch\/blog\/wp-json\/wp\/v2\/posts\/415\/revisions"}],"predecessor-version":[{"id":470,"href":"https:\/\/digitalmaterial.ch\/blog\/wp-json\/wp\/v2\/posts\/415\/revisions\/470"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digitalmaterial.ch\/blog\/wp-json\/wp\/v2\/media\/445"}],"wp:attachment":[{"href":"https:\/\/digitalmaterial.ch\/blog\/wp-json\/wp\/v2\/media?parent=415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalmaterial.ch\/blog\/wp-json\/wp\/v2\/categories?post=415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalmaterial.ch\/blog\/wp-json\/wp\/v2\/tags?post=415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}