Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 180259

Remove detached device using powershell scripts.

$
0
0

$E01 = get-esxcli -vmhost test01

$ED01 = $e01.storage.core.device.detached.list() # I have 10 devices here

$e01.storage.core.device.detached.remove($ED01) error as follows

 

PowerCLI C:\scripts> $e01.storage.core.device.detached.remove($ed01)
A specified parameter was not correct.
method
At line:1 char:41
+ $e01.storage.core.device.detached.remove <<<< ($ed01)
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodInvocationException

how to loop the list of devices in detached list that needs to be removed,


Viewing all articles
Browse latest Browse all 180259

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>