T
tech
I need to change the default gateway on a bunch of systems. I was thinking
an easy way to do this would be to export the registry key that has the
gateway information to a file on a shared drive. Edit the file to remove
all values except the new gateway address and have users to run this file to
update their system. Problem is, the registry key is not the same on all
systems. The key is:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interf
aces\{29822AAF-E4A7-4CFA-AECB-26F519206976}. The last part of the key, the
"long number", is different on some systems. Is there a way to use a "wild
card" character in the path to the key so that whatever the number is the
gateway value will get changed?
an easy way to do this would be to export the registry key that has the
gateway information to a file on a shared drive. Edit the file to remove
all values except the new gateway address and have users to run this file to
update their system. Problem is, the registry key is not the same on all
systems. The key is:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interf
aces\{29822AAF-E4A7-4CFA-AECB-26F519206976}. The last part of the key, the
"long number", is different on some systems. Is there a way to use a "wild
card" character in the path to the key so that whatever the number is the
gateway value will get changed?