None that I know off, but I usally start with the following to give me a quick report on a host profile's settings.
Note that some of these parameters are more complex than a simple scalar so they would need further code to report on the details.
&{foreach($prof in Get-VMHostProfile){ foreach($expr in $prof.ExtensionData.Config.DefaultComplyProfile.Expression){ $expr.Parameter |
Select @{N="Host Profile";E={$prof.Name}},
@{N="Expression";E={$expr.Id}},
@{N="Parameter";E={$_.Key}},
@{N="Value";E={$_.Value}} } }} | Export-Csv C:\hp-report.csv -NoTypeInformation -UseCulture
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
None that I know off, but I usally start with the following to give me a quick report on a host profile's settings.
Note that some of these parameters are more complex than a simple scalar so they would need further code to report on the details.
&{foreach($prof in Get-VMHostProfile){ foreach($expr in $prof.ExtensionData.Config.DefaultComplyProfile.Expression){ $expr.Parameter |
Select @{N="Host Profile";E={$prof.Name}},
@{N="Expression";E={$expr.Id}},
@{N="Parameter";E={$_.Key}},
@{N="Value";E={$_.Value}} } }} | Export-Csv C:\hp-report.csv -NoTypeInformation -UseCulture
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks LucD, just what I needed.