Friends,
Can you please help me with PowerShell script to Send Multiple Outputs to same HTML (in a single table stretch) in PowerShell . I have a made a script , but it gets the details in Different Tables (not in a single tabular stretch), once table with $OS details & another with $Hotfix details..
Please advice the changes \ corrections that needs to be made.
******************************************************
$OS = Get-WmiObject -Class Win32_OperatingSystem -computername $ComputerName | Select-object -Property @{n='HostName';e={$_.CSName}}, @{n='OSDescription';e={$_.Caption}}, @{n='Built version';e={$_.Version}}, @{n='Service Pack Version';e={$_.ServicePackMajorVersion}} | ConvertTo-Html -Fragment
$HotFix = Get-WmiObject -Class Win32_QuickFixEngineering -ComputerName $ComputerName | Select-object -Property @{n='HotFix ID';e={$_.hotfixid}}, @{n='Installation Date';e={$_.installedon}} | select -Last 01 | ConvertTo-Html -Fragment
ConvertTo-Html -Body "<font color = blue><H4><B>Operating System Information</B></H4></font>$OS $Hotfix" -CssUri "$filepath\style.CSS" -Title "OS Information" | Out-File "C:\Users\administrator\OSINFO.html"
Invoke-Item -Path "C:\Users\administrator\OSINFO.html"