Remove-PSDrive cannot delete Windows physical or logical drives. I am trying to set up our server which we have on my sisters new laptop. It would be a nice touch to have it execute a command that restores mapped drives after it connects, so users don't have to fumble through that issue when connecting remotely. Open it and type: net use drive letter /delete. Trying to unmap them now from File Explorer, I right-clicked This PC and when the drives showed, right-clicked them and selected Disconnect, which seemed to work. Drive not showing up when trying to map a network drive (Laptop) in Network and Sharing Someone please help me. Make sure you click the bottom half of this icon and not the top half, as clicking the top half will open a new Network Drive window. when I go to 'map network drive' and click 'browse' the server called 'BGE-B-NAS' doesn't appear on the list. My drive mapping GPO uses item-level targeting based on AD security groups, so I don't believe a static list of NET USE commands is appropriate. I'm sorry, but I don't answer questions addressed directly to me in E-mail or news groups. Syntax objNetwork.RemoveNetworkDrive(strName, [bForce], [bUpdateProfile]) Key objNetwork : A WScript.Network object strName : The mapped drive you want to remove.bForce : Force the removal of the mapped drive (TRUE/FALSE).bUpdateProfile : Remove the mapping from the ⦠.RemoveNetworkDrive. Now with PowerShell 3.0 or above use: Remove-PSDrive -Name -Scope Global -Force or Remove-SmbMapping -LocalPath ( + ":") -UpdateProfile -Force Share Improve this answer It's in the "Network" section of the toolbar. net use. --Tried to delete mapped drive via the command prompt with the net use delete command, (not found in there.) --Tried the above with the actual network path instead of the drive letter, did not work --Tried to delete the registry entries from: You are informed that the mapped drive was deleted successfully and the network drive disappears immediately from File/Windows Explorer. "net use g: /d") and then remap that same driveletter to the same sharename with a new servername. net use This shows all currently mapped drives. To disconnect one of the connections, you can use the following command: net use /delete \\server\sharename. For example, we have a drive mapping using the letter Z, so we have to type: net use Z: /delete. A drop-down menu will appear. Remove a shared network drive mapping. But if the drive has been removed, there may be no such drive letter shown. net use M: /d or net use M: /delete For more information on the "net use" command: net use /?--Best Wishes, Steve Winograd, MS-MVP (Windows Networking) Please post any reply as a follow-up message in the news group for everyone to see. You can use net use with no parameters and it will show them all to check you are in the right place : However, in File Explorer, the two drives still show in what I think is called the Navigation Pane on the left, and the Network Drive icon has a red X through it. drive mapping's "RemotePath" value in HKEY_CURRENT_USER\Network, unmap anything that points to the old server (e.g. If the one you're looking for is in the list, you can use: net use x: /delete where X: is the drive you're trying to remove. Click Map network drive . For example, in this instance weâd disconnect like so: net use /delete \\192.168.1.205\root$ Then, press Enter. You could try net use /delete Z: or net use \\computername\sharename /delete Note the network drives are in the context of the user so you need administrator cmd prompt for administrator ones and normal user cmd prompt for normal user ones. This will give you a list of the connected drives, including the ones that arenât actually mapped to a drive letter. Beginning in Windows PowerShell 3.0, Remove-PSDrive also disconnects mapped network drives, including, but not limited to, drives created by using the Persist parameter of New-PSDrive. The Remove-PSDrive cmdlet deletes temporary PowerShell drives that were created by using the New-PSDrive cmdlet.