net use /del X:when you this command you will be prompted for a confirmation to disconnect the drive press Y to continue the command.
net use /del*Using windows GUI the easy method, just open my computer, Open This PC in file explorer, just hit Windows key + E it will open the file explorer, then click on This PC, please the screenshot below. Select the network share or drive and right-click on it, click on disconnect option. Thank you for reading this article, if you have any questions please let us know. Thank you for visiting my site, for any scripts in these articles you are testing please make sure you have tested this script in our lower environment before you run in production.