![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Enexpected output when using output-csv when I add the Output-csv my my code, I get different output than what I got on the screen. Here's my code: @( ForEach($user in Get-Content "C:\inlist.txt") { Get-QADUser $user | format-table LogonName }) | export-csv c:\outlist.txt The output to outlist.txt is: #TYPE Microsoft.PowerShell.Commands.Internal.Format.FormatStartData ClassId2e4f51ef21dd47e99d3c952918aff9cd,pageHeaderEntry,pageFooterEntry,autosizeInfo,shapeInfo,groupingEntry 033ecb2bc07a4d43b5ef94ed5a35d280,,,,Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo, 9e210fe47d09416682b841769c78b8a3,,,,, 27c87ef9bbda4f709f6b4002fa4af63c,,,,, 4ec4f0187cb04f4cb6973460dfe252df,,,,, cf522b78d86c486691226b40aa69e95c,,,,, 033ecb2bc07a4d43b5ef94ed5a35d280,,,,Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo, 9e210fe47d09416682b841769c78b8a3,,,,, 27c87ef9bbda4f709f6b4002fa4af63c,,,,, 4ec4f0187cb04f4cb6973460dfe252df,,,,, cf522b78d86c486691226b40aa69e95c,,,,, 033ecb2bc07a4d43b5ef94ed5a35d280,,,,Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo, 9e210fe47d09416682b841769c78b8a3,,,,, 27c87ef9bbda4f709f6b4002fa4af63c,,,,, 4ec4f0187cb04f4cb6973460dfe252df,,,,, cf522b78d86c486691226b40aa69e95c,,,,, 033ecb2bc07a4d43b5ef94ed5a35d280,,,,Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo, 9e210fe47d09416682b841769c78b8a3,,,,, 27c87ef9bbda4f709f6b4002fa4af63c,,,,, 4ec4f0187cb04f4cb6973460dfe252df,,,,, cf522b78d86c486691226b40aa69e95c,,,,, If I kill the "| export-csv c:\outlist.txt", then I get this to the screen: LogonName --------- User1 LogonName --------- user2 LogonName --------- user3 LogonName --------- user4 Why can't I get that output to the file? |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Tab delimited output | PowerShell | |||
| Tv output, PAL | Vista music pictures video | |||
| No output from write-output | PowerShell | |||
| sorting the help output | PowerShell | |||
| Help output: what do they mean by this? | PowerShell | |||