I'm sure this is an easy thing to sort out..
So here is a sample of my code:
#Query the dashboard on netapp filer and return result
#run the gather variables and output to output.txt
SO what i am trying to achieve is a log of the ouput of each variable of which there are 6 or 7. There would have to be 3 lines between each output, and each output has a relevant title inserted.
Currently anything i do overwrites the text file with each variable or just produces nothing.
What do I need to do?
Please try below:
$today = Get-Date $dir = "$data_dir_date\output.txt" "Netapp health Checks for $filer1, $today" | Out-File -FilePath $dir -Append
You must be logged in to reply to this topic.