Powershell script error
When I use the “Add-Content” command it works but anything I append to a text file produces Asian characters. I tested the same script on a Windows 7 PC and it produces the same issue. Just FYI, I included the script below. I created a file to list BIOS info and then a following line to append important process information below the BIOS info. Again it appends but it’s in Asian code.
Get-WmiObject win32_bios | out-file “C:\<filename>.txt”
$T = (Get-Process) | Sort-Object CPU –descending | select –first 10
Add-Content C:\new_pcinfo_bios.txt $T