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 didn't work.
This question is related to
powershell
powershell-2.0
powershell-1.0
Source: Stackoverflow.com