Avilith – Scripts

Collect System Info

Category: Diagnostics

Back to Scripts

Collects detailed system information including hardware, OS, networking, and logged-in user context for support triage.


$report = @{}

$report["ComputerName"] = $env:COMPUTERNAME
$report["Username"] = $env:USERNAME
$report["OS Version"] = (Get-CimInstance Win32_OperatingSystem).Caption
$report["CPU"] = (Get-CimInstance Win32_Processor).Name
$report["RAM (GB)"] = "{0:N1}" -f ((Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory / 1GB)
$report["IP Addresses"] = (Get-NetIPAddress -AddressFamily IPv4 | Where-Object {$_.IPAddress -ne "127.0.0.1"}).IPAddress -join ", "

Write-Host "`nSystem Summary:" -ForegroundColor Cyan
$report.GetEnumerator() | ForEach-Object { Write-Host "$($_.Key): $($_.Value)" }

Write-Host "`nInstalled Hotfixes:" -ForegroundColor Cyan
Get-HotFix | Select-Object -Property Source, Description, HotFixID, InstalledOn | Format-Table -AutoSize

        

Comments

Log in to leave a comment.