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.