- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can export to a CSV like this
$report = Get-View -ViewType VirtualMachine -Property Name,Config.Flags,Config.Files.LogDirectory,Layout.LogFile,Runtime.PowerState |
where{$_.Config.Flags.enableLogging -eq $true} | %{
$_ | Select Name,
@{N='PowerState';E={$_.Runtime.PowerState}},
@{N='LogDirectory';E={$_.Config.Files.LogDirectory}},
@{N='LogFiles';E={$_.Layout.LogFile.Count}}
}
$report | Export-Csv report.csv -NoTypeInformation -UseCulture
On the learning resources, there are two parts you would have to tackle.
PowerShell, and then PowerCLI, you can learn those in parallel.
Have a look at New to PowerCLI. Book recommendations
There are many resources available, free and for a price.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference