Unix SED command is very useful to make changes to a configuration file when you know what the default values are, below is a way to do a SED-like text change in PowerShell Example: TeamCity Build Agent Configuration file needs updated so it knows where the server is.