# PCS Toolkit - WiFi Password Export $timestamp = Get-Date -Format "yyyy-MM-dd_HH-mm-ss" $outputFile = "$env:USERPROFILE\Desktop\WiFiPasswords_$timestamp.txt" function Log($msg) { Write-Host $msg Add-Content $outputFile $msg } Log "========================================" Log " PCS Toolkit - WiFi Passwords" Log "========================================" Log "Generated: $(Get-Date)" Log "" $profiles = netsh wlan show profiles | Select-String "All User Profile" | ForEach-Object { ($_ -split ":")[1].Trim() } foreach ($profile in $profiles) { Log "Network: $profile" $details = netsh wlan show profile name="$profile" key=clear $key = ($details | Select-String "Key Content") -replace ".*:\s*", "" if ($key) { Log "Password: $key" } else { Log "Password: (none/open network)" } Log "" } Log "========================================" Log "Exported $($profiles.Count) networks" Log "========================================" Write-Host "Saved to: $outputFile" -ForegroundColor Green explorer.exe "/select,$outputFile" Read-Host "Press Enter to exit"