I tried your "static IP address to DHCP" VB script, but the commands where you have a variable performing a reread...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
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.