$content = Get-Content("d:\gfile.txt")
$content = $content.Replace("sometext", "replacedtext")
$content | Out-File "d:\newfile.txt"
This works for me - really good - I can convert SQL files to this. Using Read-Host
I can store the new database info in a variable for the global varible settings in the script.
What I need to work out is - how can I do this for multiple strings in the same variable without running this for each replacement string?