You could use the following to remove the agents. Just replace the <path> with the correct one for your installation.
Aclient
<path>\AeXAgentUtil.exe /uninstallagents /clean
DAgent
msiexec.exe /x <path>\DAgent.msi /quiet
To install the DAgent (replace the 10.10.10.11 with your Deployment Server Address)
DAgent.msi /qn TCPaddr=10.10.10.11 tcpport=402
To update a computer that has an incorrect address, you could edit the following reg key with the correct address to your Deployment Server. You will need to restart the service for this to take effect.
HKLM\Software\Altiris\Client Service\TcpAddr
To install the Aclient you would need to edit the aclient.inp file in the Agents\Aclient folder. Then creat a script to call the install
<path>\altiris-aclient-6.9.164.X86.exe <path>\aclient.inp -silent -install -scriptedinstall
I am assuming you are using Deployment Server so once the machines are in the console you can set a defualt config using Tools | Options | Agent Settings. You could deploy new settings using the Change Agent Settings | Production Agent.