![]() You can find more topics about PowerShell Active Directory commands and PowerShell basics on ShellGeek home page. delete all mapped drives for each user - Windows 10 Home Windows Windows 10 delete all mapped drives for each user Posted by Sunith on Nov 13th, 2018 at 9:51 PM Needs answer Windows 10 Windows Server We have around 100 users using mapped drives on an AD environement. Type net use and press Enter to list out all mapped network drives. ![]() ![]() PowerShell Remove-PSDrive cmdlet and net use in cmd used to remove mapped network drive. Type cmd and press Enter to open Command Prompt. I hope above article to remove mapped network drive using PowerShell and cmd useful. To remove a single network drive, use below command C:\>net use K: /deleteĬool Tip: Using multiline command in PowerShell! Conclusion Using net use command to remove mapped network drive by specifying drive letter. When the command window opens up enter the following: net use XX: /delete (replace the XX with the drive letter you are trying to delete). Get-PSDrive J,K | Remove-PSDrive -Force -VerboseĬool Tip: Do you know how to fix running PowerShell script disabled on System! Using Cmd to remove mapped network drive You can get the mapped network drive using Get-PSDrive and using pipeline operator use Remove-PSDrive to remove specified drive letter. Jeffbx try net use
0 Comments
Leave a Reply. |