Hmmm ... the whole part between

$objIni.Close

and

$objIni.Write($strTxt)

can be replaced by a simple:

 Code:
$strTxt = join(split($strTxt,"ICO=10.32.62.30"),"ICO=Mydomain")


so much for golfing ;\)
_________________________