PowerShell Live - being retired

Please go to http://www.shelltools.net for more information

Welcome to PowerShell Live - being retired Sign in | Join | Help
in
Home Main Site Blogs Forums Videos Chat Customer Support

Format output text when written to file

Last post 08-19-2008, 12:52 PM by jsampson. 0 replies.
Sort Posts: Previous
  • Format output text when written to file

     08-19-2008, 12:52 PM

    I am using the following command:

    if ($ifExist -match "False") {out-file \\mhco-top\apps\test.txt -inputobject $strcomputerName, $env:username}

    it works ok but everything is written in a single column.  I would like to be able to display the computername and the username in seperate colums maybe even seperated by a tab or a , to make it easy to import into excel.

     

    Thanks for the help in advance.

View as RSS news feed in XML