# =========================================================================== # HonestFPS - coletor de diagnostico # Este script APENAS LE informacao do sistema. Nao altera nada. # Podes ler todos os comandos abaixo antes de o correres. # =========================================================================== $o = "$env:USERPROFILE\Desktop\diagnostico.txt" Write-Host "A recolher informacao... (30 segundos)" -ForegroundColor Cyan Remove-Item $o -ErrorAction SilentlyContinue '=== WINDOWS ===' | Out-File $o -Append Get-ComputerInfo -Property OsName,OsVersion,OsBuildNumber,CsSystemType | Format-List | Out-File $o -Append '=== CHASSIS ===' | Out-File $o -Append 'ChassisType : ' + ((Get-CimInstance Win32_SystemEnclosure).ChassisTypes -join ',') | Out-File $o -Append '=== CPU ===' | Out-File $o -Append Get-CimInstance Win32_Processor | Select-Object Name,MaxClockSpeed,NumberOfCores,NumberOfLogicalProcessors | Format-List | Out-File $o -Append '=== GPU ===' | Out-File $o -Append Get-CimInstance Win32_VideoController | Select-Object Name,DriverVersion,DriverDate,AdapterRAM,CurrentRefreshRate,CurrentHorizontalResolution,CurrentVerticalResolution | Format-List | Out-File $o -Append '=== RAM ===' | Out-File $o -Append Get-CimInstance Win32_PhysicalMemory | Select-Object Manufacturer,PartNumber,Capacity,Speed,ConfiguredClockSpeed,DeviceLocator | Format-List | Out-File $o -Append Get-CimInstance Win32_PhysicalMemoryArray | Select-Object MemoryDevices,MaxCapacityEx | Format-List | Out-File $o -Append '=== MOTHERBOARD / BIOS ===' | Out-File $o -Append Get-CimInstance Win32_BaseBoard | Select-Object Manufacturer,Product,Version | Format-List | Out-File $o -Append Get-CimInstance Win32_BIOS | Select-Object Manufacturer,SMBIOSBIOSVersion,ReleaseDate | Format-List | Out-File $o -Append '=== DISCOS ===' | Out-File $o -Append Get-PhysicalDisk | Select-Object FriendlyName,MediaType,BusType,Size,HealthStatus | Format-List | Out-File $o -Append '=== ESPACO DISCO ===' | Out-File $o -Append Get-Volume -DriveLetter ($env:SystemDrive.TrimEnd(':')) -ErrorAction SilentlyContinue | Select-Object SizeRemaining,Size | Format-List | Out-File $o -Append Get-Disk -ErrorAction SilentlyContinue | Where-Object IsBoot | Select-Object PartitionStyle,FriendlyName | Format-List | Out-File $o -Append '=== ENERGIA ===' | Out-File $o -Append powercfg /getactivescheme | Out-File $o -Append powercfg /list | Select-String Ultimate | Out-File $o -Append powercfg /query SCHEME_CURRENT SUB_PROCESSOR 893dee8e-2bef-41e0-89c6-b55d0929964c | Out-File $o -Append '=== SECURE BOOT ===' | Out-File $o -Append Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\SecureBoot\State' -Name UEFISecureBootEnabled -ErrorAction SilentlyContinue | Format-List UEFISecureBootEnabled | Out-File $o -Append [pscustomobject]@{FirmwareType=$env:firmware_type} | Format-List | Out-File $o -Append '=== ARRANQUE RAPIDO ===' | Out-File $o -Append Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name HiberbootEnabled -ErrorAction SilentlyContinue | Format-List HiberbootEnabled | Out-File $o -Append '=== PAGEFILE ===' | Out-File $o -Append [pscustomobject]@{AutomaticManaged=(Get-CimInstance Win32_ComputerSystem).AutomaticManagedPagefile} | Format-List | Out-File $o -Append Get-CimInstance Win32_PageFileUsage | Select-Object Name,AllocatedBaseSize | Format-List | Out-File $o -Append '=== MEMORY INTEGRITY / VBS ===' | Out-File $o -Append Get-CimInstance -ClassName Win32_DeviceGuard -Namespace root\Microsoft\Windows\DeviceGuard -ErrorAction SilentlyContinue | Format-List | Out-File $o -Append '=== GAME MODE / GPU SCHEDULING ===' | Out-File $o -Append Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers' -Name HwSchMode -ErrorAction SilentlyContinue | Format-List HwSchMode | Out-File $o -Append '=== GAME DVR ===' | Out-File $o -Append Get-ItemProperty 'HKCU:\System\GameConfigStore' -Name GameDVR_Enabled -ErrorAction SilentlyContinue | Format-List GameDVR_Enabled | Out-File $o -Append Get-ItemProperty 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR' -Name AppCaptureEnabled -ErrorAction SilentlyContinue | Format-List AppCaptureEnabled | Out-File $o -Append '=== STARTUP APPS ===' | Out-File $o -Append Get-CimInstance Win32_StartupCommand | Select-Object Name,Command,Location | Format-List | Out-File $o -Append '=== ARRANQUE ESTADO ===' | Out-File $o -Append @('HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run','HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run32','HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder','HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run','HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder') | ForEach-Object { if (Test-Path $_) { $k=Get-Item $_; $k.GetValueNames() | ForEach-Object { $b=$k.GetValue($_); 'Programa : '+$_+' | '+$(if(($b -is [byte[]]) -and ($b[0] -band 1)){'desativado'}else{'ativado'}) } } } | Out-File $o -Append Write-Host "" Write-Host "CONCLUIDO - diagnostico.txt criado no Ambiente de Trabalho" -ForegroundColor Green