Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What Makes The PSObject In Each Plugin Display #724

Open
MasterChiefJon opened this issue Jan 14, 2021 · 1 comment
Open

What Makes The PSObject In Each Plugin Display #724

MasterChiefJon opened this issue Jan 14, 2021 · 1 comment

Comments

@MasterChiefJon
Copy link
Contributor

This is not a problem, just a question about how it works. I noticed that the various plug-ins (e.g., 76 VM Network State.ps1) create a PSObject and populate it with data. But the plug-in never displays the results collected in that PSObject. That information is displayed in the report. So what actually "displays" the data from the plug-in's PSObject?

@jimmy58663
Copy link
Contributor

In the vCheck.ps1 file around line 930ish the plugin gets called with all output being saved to $Details $TTR = [math]::round((Measure-Command { $Details = @(. $_.FullName)}).TotalSeconds, 2). That gets added to a PSObject with other things shortly after and put into the array $PluginResult.

A little further down around line 1010ish the display for the plugins get parsed and set up by Get-HTMLList, Get-HTMLTable, or Get-HTMLChart. Which one is used depends on the plugin information $Display.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants