💬 Наш канал: 👉 proit_world # Cобирает инфо о пк и сохраняет его на рабочем столе # Работает в Windows PowerShell 5.1 и PowerShell 7+ $ComputerName = $env:COMPUTERNAME $DesktopPath = [Environment]::GetFolderPath('Desktop') $OutputPath = Join-Path $DesktopPath "$ComputerName-PC-Info.txt" # ===== SYSTEM INFO ===== Set-Content -Path $OutputPath -Value "===== SYSTEM INFO ($ComputerName) =====" -Encoding UTF8 Get-ComputerInfo | Out-String | Add-Content -Path $OutputPath -Encoding UTF8 # ===== GPU INFO ===== Add-Content -Path $OutputPath -Value "===== GPU INFO =====" try { $gpu = Get-CimInstance -ClassName Win32_VideoController -ErrorAction Stop $gpu | Select-Object ` Name, VideoProcessor, DriverVersion, @{Name='DriverDate';Expression={ if ($_.DriverDate) { [System.Management.ManagementDateTimeConverter]::ToDateTime($_.DriverDate).ToString('yyyy-MM-dd') } else { $null } }}, @{Name='AdapterRAM(GB)';Expression={ if ($_.AdapterRAM) { [math]::Round( ($_.AdapterRAM / 1GB), 2) } else { $nul