SyntaxFix
Write A Post
Hire A Developer
Questions
Try this;
Add-Content -path $logpath @" $((get-date).tostring()) Error $keyPath $value key $key expected: $policyValue local value is: $localValue "@