I have a string and I keep getting errors trying to place the location to save the file. I need all the security logs to be saved at C:logs but it keeps failing when I try to place it somewhere
Export-Csv ('security-log-{0}.csv' -f ([DateTime]::Now).ToString("MM-dd-yyyy"))
See Question&Answers more detail:os