To Allen & Richard:

Thank you for the workaround suggenstions. Being in a hurry for the given task, I already crufted together an ugly shellscript involving several commandline tools (reg, awk, choice, etc.) by glueing them together with some text parsing to handle piping proper arguments between each other. So far, the current job regarding IP settings is done. But the EnumKey() problem is still waiting ...