
UNSOLVED
DB
DELL-Bill Gr
50 Posts
0
5882
November 21st, 2011 11:00
Powershell - Cannot Remove Disk Mount Point
This post has been copied from the former Compellent User Forum and placed here for your reference. This code is made available AS IS, without warranty of any kind. The entire risk of the use or the results from the use of this code remains with the user.
Cannot Remove Disk Mount Point – Originally posted By jshivok, 23 Nov 2010
jshivok - I am having trouble removing a mount point in my backup script.
I am mounting a replay to a drive letter using:
Add-VolumeAccessPath -SerialNumber $replayview.SerialNumber -Server $servername -AccessPath $accesspath
where $accesspath = "S:"
if I try to do a Remove-VolumeAccessPath -SerialNumber $replayview.SerialNumber -Server $servername -AccessPath $accesspath
the S: drive remains. even if I remove the volume mapping to the server and do a rescan the S: Drive is still there.. The only way I can get it to go away is to reboot the system.
Any Help??
jbraun - What if you use the "-force" parameter with Remove-VolumeAccessPath?
Ex:
Add-VolumeAccessPath -SerialNumber $replayview.SerialNumber -Server $servername -AccessPath $accesspath -force
Responses (0)
Solutions (0)
