Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 228891

Re: Remove detached device using powershell scripts.

$
0
0

My mistake, you should of course extract the device property.

Try it like this

 

$e01.storage.core.device.detached.list()|Select-ExpandPropertyDevice|
Select
-First5|%$e01.storage.core.device.detached.remove($_) }$e01.storage.core.device.detached.list()|Select-ExpandPropertyDevice|
Select
-Last5|%$e01.storage.core.device.detached.remove($_) }$e01.storage.core.device.detached.list()|Select-ExpandPropertyDevice|
Get-Random-Count5|%$e01.storage.core.device.detached.remove($_) }

Viewing all articles
Browse latest Browse all 228891

Trending Articles



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