powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-DatastoreCluster



NAME
Get-DatastoreCluster

SYNOPSIS
Retrieves datastore clusters.

SYNTAX
Get-DatastoreCluster [-Id ] [[-Name] ] [-Location ] [-VM ] [-T
emplate ] [-Server ] []


DESCRIPTION
Retrieves datastore clusters.


PARAMETERS
-Id
Specify the Ids of the datastore clusters you want to retrieve.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Name
Specify the names of the datastore clusters you want to retrieve.

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Location
Specify the datacenters and folders from which you want to retrieve datastore clusters.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-VM
Filter the datastore clusters by the virtual machines located in them.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Template
Filter the datastore clusters by the virtual machine templates located in them.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
DatastoreCluster


NOTES




-------------- Example 1 --------------

C:\PS>Get-DatastoreCluster


Retrieves all datastore clusters.





-------------- Example 2 --------------

C:\PS>Get-DatastoreCluster -Name DatastoreCluster1


Retrieves a datastore cluster by name.





-------------- Example 3 --------------

C:\PS>Get-VM -Name WebServerVM | Get-DatastoreCluster


Retrieves datastore clusters through filtering by virtual machine.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-DatastoreCluster.html