Improve reporting tool

Display appx package dependency full names
This commit is contained in:
CodingWonders
2025-12-24 10:49:30 +01:00
parent 31b1e67b7c
commit 7dcb0d150e

View File

@@ -2,6 +2,9 @@ function Microwin-NewReportingTool {
# embedding reporting tool with here string
$reportingTool = @'
#requires -version 5.0
#requires -runasadministrator
function Get-ComputerInventory {
<#
.SYNOPSIS
@@ -193,16 +196,19 @@ function Get-ImageInventory {
$imageInv += "`n - User Information: $($_.PackageUserInformation | Foreach-Object {
@(
"`n - For SID: $($_.UserSecurityId.Sid):"
"`n - Name: $($_.UserSecurityId.Username.Replace("$env:USERNAME", "<Your user>"))"
"`n - Name: $($_.UserSecurityId.Username.Replace("$env:USERNAME", "Your user"))"
"`n - State: $($_.InstallState)"
)
})"
$imageInv += "`n - Is a resource package?: $($_.IsResourcePackage)"
$imageInv += "`n - Is a bundle? $($_.IsBundle)"
$imageInv += "`n - Is in development mode? $($_.IsDevelopmentMode)"
$imageInv += "`n - Is non removable? $($_.NonRemovable)"
$imageInv += "`n - Dependencies: $($_.Dependencies)"
$imageInv += "`n - Dependencies: $($_.Dependencies | Foreach-Object {
@(
"`n - $($_.PackageFullName)"
)
})"
$imageInv += "`n - Is partially staged? $($_.IsPartiallyStaged)"
$imageInv += "`n - Signature kind: $($_.SignatureKind)"
$imageInv += "`n - Status: $($_.Status)"
@@ -349,7 +355,7 @@ function Compress-Report {
}
$version = "1.0"
Clear-Host
Write-Host "MicroWin reporting tool -- version $version"
Write-Host "-------------------------------------------"
Write-Host "Saving system information to a report file. The report file will be saved to your desktop. This will take some time..."