So, I have a little anal here, but I can’t get add-content to add both the string and the output of the cmdlet so that it looks something like this:
Add-content -path $logfile -value "This is my text"+(Get-Date)
I understand that I can just add another line to set the variable to the get-date result and then pass the variable to my add-content command, but I'm just wondering if I can do this on one line, for example, I said that Im - anal lol
Greetings
Andy
source
share