im with avosec for the DNS changes if the old server is not around anymore and the name is not used either.
can also make an usb stick with the ini file pre configured (like the script above does) and then run batch file to copy the file to the right place.
this way your always sure the ini file is complete and the way you made it, the script has a lot of lines coded for a simple thing (no offense, i love scripts too, but this way is easier). both need to be done manually on the computer anyway because you need to disable the selfprotection.