Rated 3.1/5 based on 95 customer reviews 15 May, 2017
I have got a script with some commands such as : Write-Host Server1 How can I export it to a file, when I tried with script export.txt it doesn't work.
Out-File seems to force the BOM when using UTF-8: $MyFile = Get-Content $MyPath $MyFile | Out-File -Encoding UTF8 $MyPath How can I write a file in UTF-8 with no