I am trying to create a batch-file which will install an agent in a silent manner. Once the agent has installed I will need to navigate into the agent directory and edit a file called agent.xml
.
The agent.xml
file looks like the below:
<?xml version="1.0" encoding="utf-16"?>
<Details xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Proxy />
<ProxyDomain />
<ProxyUsername />
<ProxyPassword />
<UseNewHub>true</UseNewHub>
<Thumbprint />
<Url>https://localhost/api/</Url>
<U>agent</U>
<P />
<E1>gr\atga\rgr\zergeesfsdgfsg245325252sgsgsdfgssdgs3535353</E1>
</Details>
I am trying to replace the
<Thumbprint />
line with this:
<Thumbprint>213GARFASF131231FAAAF2</Thumbprint>
Can anyone help me implement a command that will find and replace that thumbprint line?