Skip to content

Initial report commit - #2

Merged
rebelinux merged 4 commits into
AsBuiltReport:devfrom
rebelinux:dev
Sep 6, 2025
Merged

rebelinux merged 4 commits into
AsBuiltReport:devfrom
rebelinux:dev

Conversation

@rebelinux

Copy link
Copy Markdown
Collaborator

Description

  • Initial report commit

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

- Created a Todo.md file with a list of tasks to be completed, including adding servers and configuration settings.
- Added various icon files for the project, including logos and server icons.
@github-advanced-security

Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

try {
if ($InfoLevel.Hosts -gt 0) {
Write-PScriboMessage "Collecting VMM Host information."
if ($ScVmmHosts = Get-SCVMHost) {

Check warning

Code scanning / PSScriptAnalyzer

The variable 'ScVmmHosts' is assigned but never used.

The variable 'ScVmmHosts' is assigned but never used.
Write-PScriboMessage "Generating Infrastructure Diagram for VMM."
# Used for DraftMode (Don't touch it!)
if ($Options.EnableDiagramDebug) {
$EdgeDebug = @{style = 'filled'; color = 'red' }

Check warning

Code scanning / PSScriptAnalyzer

The variable 'EdgeDebug' is assigned but never used.

The variable 'EdgeDebug' is assigned but never used.
# Used for DraftMode (Don't touch it!)
if ($Options.EnableDiagramDebug) {
$EdgeDebug = @{style = 'filled'; color = 'red' }
$SubGraphDebug = @{style = 'dashed'; color = 'red' }

Check warning

Code scanning / PSScriptAnalyzer

The variable 'SubGraphDebug' is assigned but never used.

The variable 'SubGraphDebug' is assigned but never used.
if ($Options.EnableDiagramDebug) {
$EdgeDebug = @{style = 'filled'; color = 'red' }
$SubGraphDebug = @{style = 'dashed'; color = 'red' }
$NodeDebug = @{color = 'black'; style = 'red'; shape = 'plain' }

Check warning

Code scanning / PSScriptAnalyzer

The variable 'NodeDebug' is assigned but never used.

The variable 'NodeDebug' is assigned but never used.
$EdgeDebug = @{style = 'filled'; color = 'red' }
$SubGraphDebug = @{style = 'dashed'; color = 'red' }
$NodeDebug = @{color = 'black'; style = 'red'; shape = 'plain' }
$NodeDebugEdge = @{color = 'black'; style = 'red'; shape = 'plain' }

Check warning

Code scanning / PSScriptAnalyzer

The variable 'NodeDebugEdge' is assigned but never used.

The variable 'NodeDebugEdge' is assigned but never used.
Write-Host "- Please refer to the AsBuiltReport.Microsoft.SCVMM github website for more detailed information about this project."
Write-Host "- Do not forget to update your report configuration file after each new version release."
Write-Host "- Documentation: https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.SCVMM"
Write-Host "- Issues or bug reporting: https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.SCVMM/issues"

Check warning

Code scanning / PSScriptAnalyzer

File 'Invoke-AsBuiltReport.Microsoft.SCVMM.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.

File 'Invoke-AsBuiltReport.Microsoft.SCVMM.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Write-Host "- Do not forget to update your report configuration file after each new version release."
Write-Host "- Documentation: https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.SCVMM"
Write-Host "- Issues or bug reporting: https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.SCVMM/issues"
Write-Host "- This project is community maintained and has no sponsorship from Microsoft, its employees or any of its affiliates."

Check warning

Code scanning / PSScriptAnalyzer

File 'Invoke-AsBuiltReport.Microsoft.SCVMM.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.

File 'Invoke-AsBuiltReport.Microsoft.SCVMM.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
$InstalledVersion = Get-Module -ListAvailable -Name $Module -ErrorAction SilentlyContinue | Sort-Object -Property Version -Descending | Select-Object -First 1 -ExpandProperty Version

if ($InstalledVersion) {
Write-Host "- $Module module v$($InstalledVersion.ToString()) is currently installed."

Check warning

Code scanning / PSScriptAnalyzer

File 'Invoke-AsBuiltReport.Microsoft.SCVMM.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.

File 'Invoke-AsBuiltReport.Microsoft.SCVMM.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Write-Host "- $Module module v$($InstalledVersion.ToString()) is currently installed."
$LatestVersion = Find-Module -Name $Module -Repository PSGallery -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Version
if ($InstalledVersion -lt $LatestVersion) {
Write-Host " - $Module module v$($LatestVersion.ToString()) is available." -ForegroundColor Red

Check warning

Code scanning / PSScriptAnalyzer

File 'Invoke-AsBuiltReport.Microsoft.SCVMM.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.

File 'Invoke-AsBuiltReport.Microsoft.SCVMM.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
$LatestVersion = Find-Module -Name $Module -Repository PSGallery -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Version
if ($InstalledVersion -lt $LatestVersion) {
Write-Host " - $Module module v$($LatestVersion.ToString()) is available." -ForegroundColor Red
Write-Host " - Run 'Update-Module -Name $Module -Force' to install the latest version." -ForegroundColor Red

Check warning

Code scanning / PSScriptAnalyzer

File 'Invoke-AsBuiltReport.Microsoft.SCVMM.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.

File 'Invoke-AsBuiltReport.Microsoft.SCVMM.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
@rebelinux
rebelinux merged commit 916b433 into AsBuiltReport:dev Sep 6, 2025
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

Successfully merging this pull request may close these issues.

2 participants