Automation

 View Only
  • 1.  PowerCLI script needed for Guest and Storage use.

    Posted Jun 09, 2010 03:13 PM

    Hello,

    I was wondering if someone can help me with a script. Im looking for a script that will list all the guests in a vCenter and their storage.

    Thank you in advance,



  • 2.  RE: PowerCLI script needed for Guest and Storage use.
    Best Answer

    Posted Jun 09, 2010 03:37 PM

    Something like this ?

    Get-VM | %{
    	$vm = $_
    	$vm | Get-HardDisk | Select @{N="VM";E={$vm.Name}},Name, Capacity,Storageformat,Persistence,Filename
    }
    

    Or are you looking for other storage properties ?

    ____________

    Blog: LucD notes

    Twitter: lucd22



  • 3.  RE: PowerCLI script needed for Guest and Storage use.

    Posted Jun 09, 2010 03:41 PM

    On the money..!!