Hi ,
I have many datastores which are in maintenance mode which I have moved out of datastore cluster, but they are still connected to host.
Is there any way to find all datastores in the vcenter which are in Maintenance Mode?
so that I can unmount and detach all at once.
Hi,
a simple cmd to find all maintenance datastores would be:
Get-Datastore | Where {$_.State -eq "Maintenance"}
Hi,
a simple cmd to find all maintenance datastores would be:
Get-Datastore | Where {$_.State -eq "Maintenance"}
Thanks a Lot for your quick response...:)
You are welcome
For the records: Here you can find info about the Get-Datastore cmdlet: Get-Datastore - vSphere PowerCLI Cmdlets Reference
And here are the states a datastore can be in: DatastoreState
Regards