Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Minimal System Summary for Game Bug Report
- # Run in PowerShell (admin NOT required)
- # Outputs to console and a file on Desktop
- $report = "$env:USERPROFILE\Desktop\GameBugReportSummary.txt"
- $os = Get-ComputerInfo | Select-Object -Property WindowsProductName, WindowsVersion, OsBuildNumber, OsArchitecture | Format-List | Out-String
- $cpu = Get-CimInstance Win32_Processor | Select-Object -ExpandProperty Name
- $ram = "{0} GB" -f ([Math]::Round((Get-CimInstance Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum).Sum / 1GB, 1))
- $gpu = Get-CimInstance Win32_VideoController | Select-Object -First 1 Name, DriverVersion
- $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)}}
- # DirectX version detection (from registry)
- $dx = Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\DirectX' | Select-Object -ExpandProperty Version
- # Summarize default audio device
- $audio = (Get-CimInstance Win32_SoundDevice | Select-Object -First 1 Name).Name
- $output = @"
- Windows: $($os -replace '\n+', ' ' -replace '\s+', ' ')
- CPU: $cpu
- RAM: $ram
- GPU: $($gpu.Name), Driver $($gpu.DriverVersion)
- DirectX: $dx
- Disk(C:): Free $($disk.'Free(GB)') GB / Total $($disk.'Total(GB)') GB
- Audio: $audio
- "@
- $output | Tee-Object $report
- Write-Host "`n== Bug report summary saved to $report =="
Advertisement
Add Comment
Please, Sign In to add comment