paradroid01

GameBugReportSummary.ps1

Sep 19th, 2025
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. # Minimal System Summary for Game Bug Report
  2. # Run in PowerShell (admin NOT required)
  3. # Outputs to console and a file on Desktop
  4.  
  5. $report = "$env:USERPROFILE\Desktop\GameBugReportSummary.txt"
  6.  
  7. $os = Get-ComputerInfo | Select-Object -Property WindowsProductName, WindowsVersion, OsBuildNumber, OsArchitecture | Format-List | Out-String
  8. $cpu = Get-CimInstance Win32_Processor | Select-Object -ExpandProperty Name
  9. $ram = "{0} GB" -f ([Math]::Round((Get-CimInstance Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum).Sum / 1GB, 1))
  10. $gpu = Get-CimInstance Win32_VideoController | Select-Object -First 1 Name, DriverVersion
  11. $disk = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID='C:'" | Select-Object DeviceID, @{n='Free(GB)';e={"{0:N1}" -f ($_.FreeSpace/1GB)}}, @{n='Total(GB)';e={"{0:N1}" -f ($_.Size/1GB)}}
  12. # DirectX version detection (from registry)
  13. $dx = Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\DirectX' | Select-Object -ExpandProperty Version
  14. # Summarize default audio device
  15. $audio = (Get-CimInstance Win32_SoundDevice | Select-Object -First 1 Name).Name
  16.  
  17. $output = @"
  18. Windows: $($os -replace '\n+', ' ' -replace '\s+', ' ')
  19. CPU: $cpu
  20. RAM: $ram
  21. GPU: $($gpu.Name), Driver $($gpu.DriverVersion)
  22. DirectX: $dx
  23. Disk(C:): Free $($disk.'Free(GB)') GB / Total $($disk.'Total(GB)') GB
  24. Audio: $audio
  25. "@
  26.  
  27. $output | Tee-Object $report
  28. Write-Host "`n== Bug report summary saved to $report =="
  29.  
Tags: powershell
Advertisement
Add Comment
Please, Sign In to add comment