1) How to properly initialize PowerCLI 6.x in PowerShell ISE
https://www.virten.net/2016/07/how-to-properly-initialize-powercli-6-x-in-powershell-ise/
2) Execute datastorefunctions script
https://communities.vmware.com/t5/VMware-PowerCLI-Documents/Datastore-Mount-Unmount-Detach-Attach-functions/ta-p/2791968
3) Unmount and detach datastore using powershell script
Unmount and detach datastore steps
原文:https://blog.51cto.com/549687/2548794