I tried your "static IP address to DHCP" VB script, but the commands where you have a variable performing a reread...
with a variable embedded do not read the registry.
For example: sNIC = oWSHShell.RegRead("HKLMSOFTWAREMicrosoftWindows NTCurrentVersionNetworkCards" & iCount & "ServiceName")
Any ideas why this might be and how to correct it?
It would appear that the backslashes were removed from the post. Grab the full script here.
Dig Deeper on Windows Operating System Management
Related Q&A from Rod Trent
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.