views:

27

answers:

1

Im looking for a way to remove a mount point (with either powershell/wmi/C#). I used the win32_volume to find what volumes have mount points and can find the path there (under name and caption) but i cant figure out how to delete those mount points. the win32_volume namespace has a method to create them but nothing to delete. the win32_mountpoints is read only. havent had any luck finding a solution.

Thanks Justin

+2  A: 

The PowerShell Community Extensions has a Remove-MountPoint cmdlet.

Keith Hill