Forum Discussion

ratoor's avatar
ratoor
Copper Contributor
Aug 12, 2021
Solved

Out-File or Set-Content format is not same as console output

The output that I see on the console looks different from what gets redirected to the file         $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" $headers.Add(...
  • yuzoyox's avatar
    Aug 13, 2021

    ratoor 

     

    Try to use 

    Write-Output 

     

     

     $response.content | Write-Output >> "C:\inetpub\wwwroot\abc.com\feed_IPV4.txt"

     

Resources