I’m new here and can’t say that I’m anywhere near to call myself an expert in Powershell. The commands I use I have found on Google But usually I achieve what I want in the end.
The problem I have now and can’t find a solution for is that I’m trying to replace a text-string in a bunch of files with this command
powershell -Command “(gc file.txt) -replace ‘Server List=licenseserver’, ‘Server List=“licenseserver”’ | Out-File -encoding ASCII file.txt”
The problem is that the output is Server List= licenseserver"" rather than the desired Server List=“licenseserver”. Obviously it has a problem with the quote sign but I can’t find a way around it. Is it doable?