Closed rebelinux closed 6 months ago
Code:
#region ESXi Host Image Profile Information
if ($UserRole.Privilege -contains 'Host.Config.Settings') {
Section -Style Heading5 'Image Profile' {
$installdate = Get-InstallDate
$esxcli = Get-EsxCli -VMHost $VMHost -V2 -Server $vCenter
$ImageProfile = $esxcli.software.profile.get.Invoke()
$SecurityProfile = [PSCustomObject]@{
'Image Profile' = $ImageProfile.Name
'Vendor' = $ImageProfile.Vendor
'Installation Date' = $InstallDate.InstallDate
}
$TableParams = @{
Name = "Image Profile - $VMHost"
#ColumnWidths = 50, 25, 25
}
if ($Report.ShowTableCaptions) {
$TableParams['Caption'] = "- $($TableParams.Name)"
}
$SecurityProfile | Table @TableParams
}
} else {
Write-PScriboMessage "Insufficient user privileges to report ESXi host image profiles. Please ensure the user account has the 'Host > Configuration > Change settings' privilege assigned."
}
#endregion ESXi Host Image Profile Information
This issue was closed because I identified that it is related to problems with the Vibs database.
Describe the bug
To Reproduce Steps to reproduce the behavior:
Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
System (please provide the following information about the system from which you are trying to generate a report):
Additional context Add any other context about the problem here.