Powershell Powercli

Get-VM | foreach{Get-HardDisk -VM $_.Name | select Parent,StorageFormat,Persistence,Disktype,Filename |Export-csv -path “$PSScriptRoot$vSphereServer-disk-$date.csv” -append -force}

When I use the above, the first cell in the .csv file is “#TYPE Selected.VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.FlatHardDiskImpl

I don’t see why.

submitted by /u/Sintek
[link] [comments]

Leave a Reply