本文共 656 字,大约阅读时间需要 2 分钟。
A set of functions to allow you to unmount/mount and detach/attach datastores from multiple hosts.
List all datastores and their mount/detach status by passing your datastore object(s) into the Get-DatastoreMountInfo advanced function as shown below:
To unmount a datastore pass your datastore object(s) to the Unmount-Datastore advanced function as seen below, this will unmount the datastore from all attached hosts:
Once unmounted you will then be able to detach the datastore from the hosts using the Detach-Datastore cmdlet as shown below:
Script download
Forward from
本文转自学海无涯博客51CTO博客,原文链接http://blog.51cto.com/549687/1983749如需转载请自行联系原作者
520feng2007