This script will replace the occurence of “server1” with “server2” in all files called config.ini placed under c:\temp
Get-ChildItem -Path c:\temp -File -Recurse -include config.ini | %{(Get-Content $_) -replace "server1","server2" | Set-Content $_.fullname}
Recent Comments