BenLiebowitz's Posts

LucD, Thanks for your help...  I found a script posted here that I was able to modify to my needs.  http://communities.vmware.com/message/1708892 Thanks again! - Ben
Okay. If I replace "development" in your script below with "CUBE" I get the list of VMs in each folder but not the amount of space each VM is using on each Datastore. 
Not exactly...  This script is returning everything under the Development folder and I want to go 1 folder deeper...  What I want to do is take every VM in the \Development\CUBE, \Staging\CUBE an... See more...
Not exactly...  This script is returning everything under the Development folder and I want to go 1 folder deeper...  What I want to do is take every VM in the \Development\CUBE, \Staging\CUBE and \Production\CUBE folders and find out how much space each VMDK is using on the respective datastore.  Each VM has 3 VMDKs each on a different datastore.  I need to move all of these VMs to new datastores which will then be migrated to another SAN so I need to know how much space to tell the storage team to allocate.  Right now, I'm guessing.  Thanks! - Ben
Hey Guys, I need help with a script...  I need to get a list of how much space each VM is using on each datastore.  I only need this from a select list of VMs.  These VMs are all in the sa... See more...
Hey Guys, I need help with a script...  I need to get a list of how much space each VM is using on each datastore.  I only need this from a select list of VMs.  These VMs are all in the same folder, however this folder exists under 3 differnet parent folders (Development, Staging and Production).  Each VM has a VMDK on 3 datastores and I need to see how big each VMDK is (they are thin provisioned disks.)  I came up with the script below, but it only gives me totals for the different datastores and not a value for each VM... get-Datastore -VM (Get-VM -Location (get-Folder Development)) | select Name,@{N="i3 Cube";E={$_.Folder.Name}} | Sort-Object Name | export-CSV "c:\Cube.csv" If I do Get-Datastore -VM (Get-VM -Name VMNAME) it works...  so i need to figure out the get-VM part that will pull a list of... Development\FOLDER Staging\FOLDER Production\FOLDER If I wasn't in a hurry for the info, I'd try to figure it out on my own... Thanks in advance!! - Ben
Wow, thank you for the prompt reply! 
Hi, I wrote a PowerCLI script to list network adapters that are NOT VMXNet3.  The syntax works fine in PowerCLI however the Export-csv command is creating a 0k csv file. Get-VM | Get-Netwo... See more...
Hi, I wrote a PowerCLI script to list network adapters that are NOT VMXNet3.  The syntax works fine in PowerCLI however the Export-csv command is creating a 0k csv file. Get-VM | Get-NetworkAdapter | Where-object {$_.Type -ne "Vmxnet3"} | foreach ($_) {Write-Host $_.Parent.Name "("$_.Name") type:" $_.Type} | export-Csv  c:\Network_Interface.csv -NoTypeInformation Results look like: VM1 ( Network adapter 1 ) type: Flexible VM2 ( Network adapter 1 ) type: e1000 Any help would be appreciated. - Ben