<# .SYNOPSIS Check CPU manufacturer and Intel-related services/processes. Save results to a text file named after the hostname. .DESCRIPTION - Detects CPU vendor (Intel/AMD/Other). - Lists running processes containing "Intel". - Lists services containing "Intel". - Saves results into .txt in the current directory. #> [CmdletBinding()] param() # Get hostname $hostname = $env:COMPUTERNAME Write-Host "Auditing system: $hostname" -ForegroundColor Cyan # Prepare output file $outFile = ".\${hostname}.txt" # Collect CPU info $cpuInfo = Get-WmiObject Win32_Processor | Select-Object Name, Manufacturer # Collect Intel processes $procInfo = Get-Process | Where-Object { $_.ProcessName -match "Intel" } | Select-Object ProcessName, Id # Collect Intel services $svcInfo = Get-Service | Where-Object { $_.DisplayName -match "Intel" -or $_.Name -match "Intel" } | Select-Object Status, Name, DisplayName # Write results to file "=== Hostname: $hostname ===" | Out-File $outFile "`n=== CPU Manufacturer ===" | Out-File $outFile -Append $cpuInfo | Format-Table | Out-File $outFile -Append "`n=== Intel-Related Processes ===" | Out-File $outFile -Append if ($procInfo) { $procInfo | Format-Table | Out-File $outFile -Append } else { "No Intel processes found." | Out-File $outFile -Append } "`n=== Intel-Related Services ===" | Out-File $outFile -Append if ($svcInfo) { $svcInfo | Format-Table | Out-File $outFile -Append } else { "No Intel services found." | Out-File $outFile -Append } Write-Host "Audit complete. Results saved to $outFile" -ForegroundColor Green