Q

Static IP address to DHCP VB script

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.

This was first published in May 2003

Dig Deeper on Windows Operating System Management

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

  • VDI assessment guide

    Wait! Don't implement VDI technology until you know your goals and needs. A VDI assessment should consider the benefits of a VDI ...

  • Guide to calculating ROI from VDI

    Calculating ROI from VDI requires a solid VDI cost analysis. Consider ROI calculation models, storage costs and more to determine...

  • Keep the cost of VDI storage under control

    Layering, persona management tools and flash arrays help keep virtual desktop users happy and VDI storage costs down.

Close